INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Expression Help!  (Read 1308 times)

SkGe

  • Galactic Citizen
  • ****
  • Posts: 433
Expression Help!
« 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!
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Expression Help!
« Reply #1 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])
Logged
The opinions I express represent my own folly.

SkGe

  • Galactic Citizen
  • ****
  • Posts: 433
Re: Expression Help!
« Reply #2 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
Logged

SkGe

  • Galactic Citizen
  • ****
  • Posts: 433
Re: Expression Help!
« Reply #3 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?
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Expression Help!
« Reply #4 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.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up