Skip to main content
1-Visitor
June 3, 2014
Question

Expression of the validator

  • June 3, 2014
  • 3 replies
  • 1568 views

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

    1-Visitor
    June 3, 2014

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

    5-Regular Member
    June 3, 2014

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


    No need for the if statement.



    1-Visitor
    June 3, 2014

    Thank you Adam.