Operator Reference

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.

elseelseElseElseelse (Operator)

elseelseElseElseelse — Alternative of conditional statement.

Signature

else( : : : )

Herror else()

Herror T_else()

void Else()

static void HOperatorSet.Else()

def else() -> None

Description

elseelseElseElseelse continues after an ififIfIfif or elseifelseifElseifElseifelseif block with an alternative block. If the conditions of all corresponding ififIfIfif or elseifelseifElseifElseifelseif blocks evaluated to 'false'"false""false""false""false" (0), i.e., none of the corresponding ififIfIfif or elseifelseifElseifElseifelseif blocks has been executed, the following elseelseElseElseelse block is executed.

Result

elseelseElseElseelse (as operator) always returns 2 ( H_MSG_TRUE) .

Alternatives

ififIfIfif, elseifelseifElseifElseifelseif

See also

untiluntilUntilUntiluntil, forforForForfor, whilewhileWhileWhilewhile

Module

Foundation