elseif

Syntax

elseif

Description

This command will allow your program to perform two different sequences of commands based on the result of a condition. If the condition is true, the commands immediately following the if command are performed. If the condition is false, the commands immediately following the elseif command are checked and if this statement is true the commands following it are used. You must always use an endif to mark the end of the command sequence.

Example

if a = 0
    print ( "a is 0" )
elseif a = 1
    print ( "a is 1" )
endif