Back to index.
Exceptions let you break out of a code block as soon as something happens, rather than checking something only at the beginning or end of a code block. Most often used with loops.
4.1 avoid_when condition statements
This hasn't been used for a long time, and may not work.
4.2 until condition statements
Repeatedly checks the condition, which upon success processes a number of statements. Often used before an end loop statement as the exception for the loop.
until HEALTH of MyVillager == 0
end loop