<< Click to Display Table of Contents >> Logical Operators |
|
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