INTERACT FORUM

Please login or register.

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

Author Topic: Expression Language basic problem  (Read 1125 times)

honza

  • Member
  • *
  • Posts: 3
Expression Language basic problem
« 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
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10931
Re: Expression Language basic problem
« Reply #1 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(...) function.
Logged
~ nevcairiel
~ Author of LAV Filters

honza

  • Member
  • *
  • Posts: 3
Re: Expression Language basic problem
« Reply #2 on: February 25, 2020, 10:26:29 am »

Bingo! I overlooked the keyword Math in documentation :-(
Thank you Hendrik very much :-)
Logged
Pages: [1]   Go Up