Jump to navigation Jump to search
ELIF is a CAOS command controlling flow, introduced in Creatures 3. Before ELIF was invented, cobblers had to put a doif... else... doif... endi... endi structure in their code.
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.
See DOIF for more on conditional execution.