DarwinBotsManual
Open the app EspañolES

start

Closes the gene's conditions and opens its body, which runs if all of them came out true; with no cond before it, it always runs.

Facts

Word
start
Family
Flow
What it does
Opens the body of the gene. After a cond, it empties the boolean stack and runs only if all the conditions are true (or there are none). With no cond before it, it opens a gene without conditions.
Cost
Flow control; end is free
Runs
always

start opens the gene's body: the part where stores do write. What happens when it's reached depends on what comes before:

' the first gene always runs; the second, only for the first 20 cycles of life
start
 10 .up store
stop
cond
 *.robage 20 <
start
 30 .aimdx store
stop

The bot moves forward all the time with .up and turns with .aimdx until cycle 20. After that .robage reaches 20 and the second body stops running.

Two traps:

Inside the body, a new condition governs the stores that come after it; that is covered in Inline conditions. The rest of the gene is in Genes: cond, start, else and stop.