Logical (boolean) operators are used to perform digital logic operations on variables. All logical operations result in either a boolean True or False.
Operator |
Function |
Usage |
---|---|---|
Not |
logical negation |
if not X |
And |
logical And |
If (X> Y) And (X < Z) |
Or |
logical Or |
If (X = Y) Or (X = Z) |
See Also