Logical Operators

<< Click to Display Table of Contents >>

Navigation:  Project > Scripts > ST language > Operators and Expressions in STL > Operators >

Logical Operators

Previous pageReturn to chapter overviewNext page

If you want to compare boolean values (BOOL) and make some logic out of it, you have to use logical operators. These operators also yields a boolean value of TRUE(1) or FALSE(0) as a result of the expression.

&&

||

^

Example:

limitswitch1 = true;

limitswitch2 = false;

limitswitch1 || limitswitch2

Result:

true