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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Expression of the validator

martingalaz
1-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

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

adam11
5-Regular Member
(To:martingalaz)

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


No need for the if statement.



Thank you Adam.

Top Tags