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)
|
|