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.

untiluntilUntilUntiluntil (Operator)

untiluntilUntilUntiluntil — Continue to execute the body as long as the condition is not true.

Signature

until( : : Condition : )

Herror until(const Hlong Condition)

Herror T_until(const Htuple Condition)

void Until(const HTuple& Condition)

static void HOperatorSet.Until(HTuple condition)

def until(condition: int) -> None

Description

untiluntilUntilUntiluntil ends a repeatrepeatRepeatRepeatrepeat..untiluntilUntilUntiluntil loop. The repeatrepeatRepeatRepeatrepeat..untiluntilUntilUntiluntil loop is executed as long as the ConditionConditionConditionconditioncondition parameter evaluates to 'false'"false""false""false""false" (0). The body of the loop is executed at least once, because the condition will be checked at the end of the body.

Parameters

ConditionConditionConditionconditioncondition (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Condition for loop.

Result

If the values of the specified parameters are correct, untiluntilUntilUntiluntil (as operator) returns 2 ( H_MSG_TRUE) . Otherwise, an exception is raised and an error code returned.

Alternatives

forforForForfor, whilewhileWhileWhilewhile

See also

repeatrepeatRepeatRepeatrepeat, ififIfIfif, elseifelseifElseifElseifelseif, elseelseElseElseelse, breakbreakBreakBreakbreak, continuecontinueContinueContinuecontinue

Module

Foundation