Saturday 8 September 2012

Logical Operators


These operators are used to combine two relational operators. The following are the available logical operators.

Operator
Meaning
AND
Both the conditions must be true for the entire condition to be true.
OR
If either condition is true then the entire condition is true.
NOT
Reverses the result of the condition.
XOR
The entire condition is true only when either of the conditions is true. If both the conditions are true or if both the conditions are false then entire condition is false.
EQV
The entire condition is true only when both the conditions are either true or false.
IMP
The entire condition is true except when the first condition is true and the second condition is false.

No comments:

Post a Comment