ROPE Language Reference - "until"

The "until" action executes a block of actions while another returns a false value. The first block on the stack is the condition, the second is the action to take. So: the syntax summary is..

{ condition-block } { action-block } until
until( { condition-block } { action-block } )

For example

10 $a put
until ( { $a 1 lt } {
    println( "$a is " $a )
    $a dec
} )

This script prints "$a is 10", down to "$a is 1" and then stops.

Anti Locking

A until loop is not permitted to executed more often than the limit defined in the $max_while_loops register. If it hits this limit, the script aborts with a hotdrop status, and an error message is written to the Syslog mechanism.

See Also

while