INTERACT FORUM

More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: mcj008 on September 21, 2013, 03:35:26 am

Title: problem [Solved]
Post by: mcj008 on September 21, 2013, 03:35:26 am
Hello, this is the code I copied from the Wiki

ifelse(isequal([media type], Audio), Le Tunes, isequal([media type], Video]), Flix)

I changed it to do this:

ifelse(isequal([media type], Audio), [Name], isequal([media type], Image]), [Album])

for my audio files it works, it outputs the name, but for the image files it outputs ".jpg" so nothing, eventough there is an Album name for the images...what's wrong here?

Edit: I made 2 calculated fields, then it worked...thanks!
Title: Re: problem [Solved]
Post by: MrC on September 21, 2013, 12:14:28 pm
Good spot.  You've found a typo in the expression page example.

This

   ifelse(isequal([media type], Audio), Le Tunes, isequal([media type], Video]), Flix)

should be:

   ifelse(isequal([media type], Audio), Le Tunes, isequal([media type], Video), Flix)

I've corrected it.
Title: Re: problem [Solved]
Post by: mcj008 on September 22, 2013, 06:00:01 am
Cool thanks, It's usefull...I dear to say that I came across other things in the wiki that I found not working like was said, but that could be me... ;D
Title: Re: problem [Solved]
Post by: MrC on September 22, 2013, 01:08:45 pm
Cool thanks, It's usefull...I dear to say that I came across other things in the wiki that I found not working like was said, but that could be me... ;D

From the same page?  If so, don't be coy - share away! :-)