INTERACT FORUM

Please login or register.

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

Author Topic: [Solved] Expression Help (Custom Title Expressions based on Media/Media Subtype)  (Read 1946 times)

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!

I'm not great on MC's Expression Editor, but I'm trying to get some meaningful names send over DLNA using the "Title Expression Field".  I've had a play and can do some basic stuff, but I'm not sure how to do multiple if statements.  Eg:  I'd like to have something like:
Code: [Select]
If  ([Media Type]="Audio" or [Media Sub Type]="Music Video"),[Track #]-[Name])
    ([Media Sub Type]="TV Show"),S[Season]E[Episode]-[Name])
Else [Name]
Thanks
Nathan
Logged
JRiver CEO Elect

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!

Mr C would be proud of my effort, it is:

Code: [Select]
ifelse(isequal([media sub type], TV Show), S[Season]E[Episode] - [Name],isequal([media sub type],Music Video),[Track #] - [Name],isequal([media type],Audio),[Track #] - [Name],1,[Name])
Logged
JRiver CEO Elect

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.

Mr C would be proud of my effort, it is:

He is very pleased.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up