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)

Name

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

untiluntilUntilUntilUntiluntil ends a repeatrepeatRepeatRepeatRepeatrepeat..untiluntilUntilUntilUntiluntil loop. The repeatrepeatRepeatRepeatRepeatrepeat..untiluntilUntilUntilUntiluntil loop is executed as long as the ConditionConditionConditionConditionconditioncondition parameter evaluates to 'false'"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

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

Condition for loop.

Result

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

Alternatives

forforForForForfor, whilewhileWhileWhileWhilewhile

See also

repeatrepeatRepeatRepeatRepeatrepeat, ififIfIfIfif, elseifelseifElseifElseifElseifelseif, elseelseElseElseElseelse, breakbreakBreakBreakBreakbreak, continuecontinueContinueContinueContinuecontinue

Module

Foundation