INTERACT FORUM

More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: SkGe on August 14, 2013, 12:28:51 pm

Title: Expression Help!
Post by: SkGe on August 14, 2013, 12:28:51 pm
I want to create a expression where the artist name should be a different color when the track name is played
I create this expression:
Code: [Select]
<b>If(isEmpty([Number Plays, 0], 1),, / <font color="0e76bc">[artist]<//font>)<//b>But in this expression will appear only the artist with the track played, what is not yet played is empty.
Any help!
Title: Re: Expression Help!
Post by: MrC on August 14, 2013, 01:40:56 pm
You need to include a value for both the THEN and ELSE side of the If():

   if(isempty([Number Plays]), <font color="0e76bc">[artist]<//font>, [artist])
Title: Re: Expression Help!
Post by: SkGe on August 14, 2013, 01:52:31 pm
As always MrC, thank you sir!
Btw is anything you don't know about expression? i believe is not :D
Title: Re: Expression Help!
Post by: SkGe on August 14, 2013, 04:19:12 pm
It is possible to have the text on thumbnail view align to the right or left side, because it seems that default is centered on the middle of thumbnail.
Can this be done in this way to be showed?
Title: Re: Expression Help!
Post by: MrC on August 14, 2013, 04:22:15 pm
MC centers thumbnail text, and the only alignment you can do is by adding spaces before or after to pad the text.  But the amount of padding you'd need to add would depend upon the thumbnail size, so it is not terribly practical.  I'll explain if it is useful to you.