INTERACT FORUM

Please login or register.

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

Author Topic: problem [Solved]  (Read 1337 times)

mcj008

  • Recent member
  • *
  • Posts: 35
problem [Solved]
« 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!
Logged

MrC

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

mcj008

  • Recent member
  • *
  • Posts: 35
Re: problem [Solved]
« Reply #2 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
Logged

MrC

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