Key Pages: [ Rope Home Page | Basics (tutorial) | Language Reference | Download ]
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.
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.
Lowth.com: [ Home | Rope | P2PWall | LinWiz | cutter | Protector - Free Antivirus software | TapeIO ]