Welcome to the Creatures Wiki! Log in and join the community.


From Creatures Wiki
(Redirected from Else)
Jump to navigation Jump to search

ELSE is a CAOS command controlling flow. It gives your DOIF statement something to do if all else fails. It's good practice to include this in your DOIF statements to improve the flexibility of your agents.


Syntax: ELSE ..

Used within a DOIF..(ELIF..)ENDI block. If the conditions in none of the preceding DOIF or ELIF commands have been true, the following code block is executed. Must be followed by an ENDI command.

See DOIF for more on conditional execution.