cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Expression of the validator

Highlighted
Newbie

Expression of the validator

Hello:


I added two input parameters to the validator, both are booleans, I wired up those to a service result, in the expression  field (which is too small and annoying to work, just comment here) i want to check if both are true, so I did: 'if(param1&param2)' then the otp should it be true or false right?


Am I missing something?


Ty.



3 REPLIES 3
Highlighted

Expression of the validator

Not sure if you have a typo, but in Javascript I believe that should be "if(param1&&param2)' two &s

Highlighted

Expression of the validator

Since you're checking to see if they are both true, you could simply use: param1 && param2


No need for the if statement.



Highlighted

Expression of the validator

Thank you Adam.

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!