ClassesClassesClassesClasses | | | | Operators

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

ifelseifelseIfelseifelseIfelseIfelse (Operator)

Name

ifelseifelseIfelseifelseIfelseIfelse — Conditional statement with alternative.

Warning

ifelseifelseIfelseifelseIfelseIfelse is obsolete and is only provided for reasons of backward compatibility. ififIfifIfIf should be used instead.

Signature

ifelse( : : Condition : )

Herror ifelse(const Hlong Condition)

Herror T_ifelse(const Htuple Condition)

Herror ifelse(const HTuple& Condition)

void Ifelse(const HTuple& Condition)

void HOperatorSetX.Ifelse([in] VARIANT Condition)

static void HOperatorSet.Ifelse(HTuple condition)

Description

ifelseifelseIfelseifelseIfelseIfelse is a conditional statement with an alternative. If the condition is true (i.e., not 0), all expressions and calls between the head and operator elseelseElseelseElseElse are performed. If the condition is false (i.e., 0) the part between elseelseElseelseElseElse and endifendifEndifendifEndifEndif is executed. Note that the operator is called ifelseifelseIfelseifelseIfelseIfelse and it is displayed as if in the program text area.

Parameters

ConditionConditionConditionConditionConditioncondition (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Condition for the if statement.

Default value: 1

Result

If the condition is correct ifelseifelseIfelseifelseIfelseIfelse (as operator) returns 2 (H_MSG_TRUE). Otherwise an exception is raised and an error code returned.

Alternatives

ififIfifIfIf

See also

elseelseElseelseElseElse, elseifelseifElseifelseifElseifElseif, forforForforForFor, whilewhileWhilewhileWhileWhile, repeatrepeatRepeatrepeatRepeatRepeat, untiluntilUntiluntilUntilUntil

Module

Foundation


ClassesClassesClassesClasses | | | | Operators