INTERACT FORUM

Please login or register.

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

Author Topic: IF Database expression question  (Read 754 times)

ChrisRainman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 306
  • nothing more to say...
IF Database expression question
« on: March 18, 2005, 08:40:34 am »

Hope that someone can help on this one:

How can I compare against empty fields in the IF database expression?

Example:

IF(ISEQUAL([Album],""),C:\Tracks,C:\Albums)

That's the way I would like to have it but seems not possible (as "" is not interpreted as empty)

Is it possible to use an IF-expression within an IF-expression? (This would be very useful if you want to have more than two decision paths).
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42323
  • Shoes gone again!
Re: IF Database expression question
« Reply #1 on: March 18, 2005, 08:45:20 am »

We'll add IsEmpty(...) to the next build.
Logged
Matt Ashland, JRiver Media Center

Herakles

  • Regular Member
  • Recent member
  • *
  • Posts: 40
Re: IF Database expression question
« Reply #2 on: March 18, 2005, 12:08:02 pm »

Yes, it's possible to have multiple ifs. I use this formula and it works perfectly for me:

If([Complete Album],If(IsEqual([Disc #],0,2),Complete Albums\[Album Artist (auto)]\[Album],Complete Albums\[Album Artist (auto)]\[Album]\Disc [Disc #]),If(IsEqual([Disc #],0,2),Partial Albums\[Album Artist (auto)]\[Album],Partial Albums\[Album Artist (auto)]\[Album]\Disc [Disc #]))
Logged
Pages: [1]   Go Up