Boolean Expressions
RoBOTL
Boolean Expressions
A boolean expression is an
expression
which is interpreted to be either true (non-zero) or false (zero).
A boolean expression can contain anythin an expression can, only the
interpretation (true/false instead of a numeric value) is different.
However, a boolean expression is usually limited to
boolean functions and
boolean operators.
Boolean Functions:
- FrontIsClear or front_is_clear
- RightIsClear or right_is_clear
- LeftIsClear or left_is_clear
- FacingNorth or facing_north
- FacingSouth or facing_south
- FacingEast or facing_east
- FacingWest or facing_west
Boolean Operators:
- Prefix Operators: not, !
- Comparitive Operators: >, <, >=, <=
- Equality Operators: ==, !=
- Boolean AND Operators: &&, and
- Boolean OR Operators: ||, or
Instructions that use Boolean Expressions:
You can also go:
Created on 19 June 1995
Last revised 27 January 1997
Copyright ©1995,1996,1997 Walter S. Ching, n1hbr@ma.ultranet.com