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

ELIF

From Creatures Wiki
Jump to: navigation, search

ELIF is a CAOS command controlling flow.

Usage[edit]

Syntax: ELIF cond (condition)

"Else-if". Used between DOIF and ENDI. If the condition of no preceding DOIF or ELIF command has been true, but cond is true, then the following code block will be executed.

ELIF should follow a DOIF and code block.

Warning!
ELIF may be used without a preceding DOIF, in which case it acts like DOIF. This feature is deprecated and should be avoided.

See DOIF for more on conditional execution.