Operator: NOT
|
|
Suppose that P represents a Boolean expression.
The expression NOT P has the opposite truth value.
Code example:
NOT Kim.isWater(LEFT)
|
|
Operator: AND
|
|
Suppose that P and Q
represent Boolean expressions.
The expression P AND Q is only true when
both P and Q are true.
Code example:
Kim.hasFlower() AND Kim.isNet(AHEAD)
|
|
Operator: OR
|
|
Suppose that P and Q
represent Boolean expressions.
The expression P OR Q is only false when
both P and Q are false.
Code example:
Pat.isJeroo(LEFT) OR Pat.isJeroo(RIGHT)
|
|