INTERACT FORUM

Please login or register.

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

Author Topic: Help with expressions  (Read 1512 times)

221bBS

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 703
Help with expressions
« on: January 25, 2009, 09:05:25 am »

I'm hoping someone can help me with an expression.

Tags being used:
[Name]
[Genre]
[Name: Base]
[Name: Movement]


I need the expression to  be...

[Name: Base]: [Name: Movement]

but if the [Genre] tag equals "Soundtrack: Score" then I need it to be

[Name: Movement]

Not even sure if this is possible but any hep would be appreciated ;D
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Help with expressions
« Reply #1 on: January 25, 2009, 09:14:53 am »

how about?
Code: [Select]
if(IsEqual([Genre, 0],Soundtrack: Score,8),[Name: Movement],[Name: Base]: [Name: Movement])
not sure how it will react on the : did not test it.

 :)
gab
Logged

221bBS

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 703
Re: Help with expressions
« Reply #2 on: January 25, 2009, 09:46:57 am »

It works!  ;D

Thanks for your help and for the quick reply.
Logged

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Help with expressions
« Reply #3 on: January 25, 2009, 10:18:06 am »

It works!  ;D

Thanks for your help and for the quick reply.
great that it works... saw i made a small 'mistake', was so involved trying to solve my own expression problem. when you change the 8 in a 1, it is a bit more correct. in case you have longer genre names that contain  "Soundtrack: Score" but should not be taken into this behaviour.

 :)
gab
Logged
Pages: [1]   Go Up