INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Windows => Topic started by: honza on February 23, 2020, 04:19:33 am

Title: Expression Language basic problem
Post by: honza on February 23, 2020, 04:19:33 am
Why if(False,1,0) returns 1 instead of 0?
Why if(0&1,1,0) returns 1 instead of 0?
I'm totally lost
Title: Re: Expression Language basic problem
Post by: Hendrik on February 23, 2020, 09:10:46 am
1) Only numbers are recognized as valid test expressions. True or False are not.

2) You can't do math lke that in an expression. If you want to, use the Math(...) (https://wiki.jriver.com/index.php/Miscellaneous_Functions#Math) function.
Title: Re: Expression Language basic problem
Post by: honza on February 25, 2020, 10:26:29 am
Bingo! I overlooked the keyword Math in documentation :-(
Thank you Hendrik very much :-)