and
Replaces the top two values of the boolean stack with one: true only if both are.
Facts
and pops the top two values of the boolean stack and pushes true if both are true, and false in any other case.
Between cond and start you almost never need to write it: start already joins all the conditions with an and. You need it when an or is in play, because each logic word combines only the top two. This gene counts in cell 50 the cycles in which (it sees something and it is not of its own species) or it is less than 10 cycles old:
' (it sees another bot and it is not one of its own) or it is very young
cond
*.eye5 0 >
*.refeye *.myeye !=
and
*.robage 10 <
or
start
50 inc
stopRun on its own, with nothing in sight, cell 50 reaches 10. Without the and, the or would join the last two conditions and start would do the and with the first: “it sees something and (it is not one of its own or it is young)”. Since it sees nothing, the cell would stay at 0.
Inside the body, and lets a store depend on two inline conditions: a new condition does not add to the previous one, it covers it (see Inline conditions).
With a single value on the stack, and leaves it as is; with an empty stack it pushes true. To combine numbers bit by bit, the operator is &.