There are two ways to write certain commands. For example, to add 4 and 7, there are two possibilities: you can
either use the primitive sum which expects two arguments: sum 4 7, or you can use the operator +: 4+7. Both have
the same effect.
This table shows the relationship between operators and primitives:
|
There are two other operators with no associated primitive:
Note: The two operators | and & are specific to XLOGO. They do not exist in traditional versions of LOGO. Here are some examples of usage:
pr 3+4=7-1 ----> false pr 3=4 | 7<=49/7 ----> true pr 3=4 & 7=49/7 ----> false |