Use the tabs on the upper right to switch to a different programming language.
Use the tabs on the upper right to switch to a different programming language.
Use the tabs on the upper right to switch to a different programming language.
Use the tabs on the upper right to switch to a different programming language.
elseifelseifElseifElseifelseif (Operator)
Name
elseifelseifElseifElseifelseif
— Conditional statement with alternative.
Signature
Description
elseifelseifElseifElseifelseif
is a conditional statement that continues after an
ififIfIfif
or another elseifelseifElseifElseifelseif
block with an alternative block.
The ConditionConditionConditionconditioncondition
parameter must evaluate to a Boolean or integer
expression.
If ConditionConditionConditionconditioncondition
evaluates to 'true'"true""true""true""true" (not 0), the
following block body up to the next corresponding block statement
elseifelseifElseifElseifelseif
, elseelseElseElseelse
, or endifendifEndifEndifendif
is executed.
Reaching the end of the block the execution continues after the
corresponding endifendifEndifEndifendif
statement.
If ConditionConditionConditionconditioncondition
evaluates to 'false'"false""false""false""false" (0), the
execution is continued at the next corresponding block statement
elseifelseifElseifElseifelseif
, elseelseElseElseelse
, or endifendifEndifEndifendif
.
Parameters
ConditionConditionConditionconditioncondition
(input_control) integer →
HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Condition for the if statement.
Default:
1
Result
If the condition is correct
elseifelseifElseifElseifelseif
(as operator) returns 2 (
H_MSG_TRUE)
. Otherwise, an
exception is raised and an error code returned.
Alternatives
ififIfIfif
See also
elseelseElseElseelse
,
forforForForfor
,
whilewhileWhileWhilewhile
,
untiluntilUntilUntiluntil
Module
Foundation