clearbool
Empties the boolean stack. Since empty counts as true, every store that follows writes again.
Facts
clearbool empties the boolean stack all at once, whatever it holds. An empty boolean stack counts as true, so after a clearbool all the stores in the body run again.
It is the safe way to close a gene that used inline conditions. A gene that starts with start, without cond, does not clear the boolean stack: it inherits whatever the previous one left (see The integer and boolean stacks). In this pair of genes, without the clearbool, the false from the first would block the store in the second and cell 51 would never be written; with it, 51 ends up at 4:
start
1 2 = 3 50 store
clearbool
stop
start
4 51 store
stopThe other way out is to open every gene with cond, which also empties the boolean stack at the start.
Compared with dropbool, which pops only the top one, clearbool leaves nothing underneath that could take charge again. Compared with true, it does not just cover it up: it erases. To empty the integer stack there is clear.