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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

OR Logical Operator in Validator

Willie
16-Pearl

OR Logical Operator in Validator

When I have the following expression in a validator, I expect the output to be false, based on the OR gate truth table; however, the output is true.  Why is it true?

 

output = (false || false);

 

OR gate truth table

A B A+B
0 0 0
0 1 1
1 0 1
1 1 1
1 REPLY 1

Hi @Willie 

 

In the expression of the validator function you can use all the JavaScript comparison operators. Not sure it will work if you use a logical operator.

 

Regards,

Sachin

Top Tags