Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 803 Bytes

exceptions.md

File metadata and controls

20 lines (12 loc) · 803 Bytes

Lionhead Challenge Language Documentation

Back to index.

4 Exceptions

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.

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