Arbortext Command Language > Commands > while
  
while
while (condition) {cmds}
This command repeats the commands listed as long as the given condition is true.
cmds is a list of one or more commands. The list must be enclosed in curly braces. condition is a logical expression describing the case in which these commands are to be executed.
* 
It is essential that the commands that are executed are ones that eventually change the condition so that it is no longer true. Otherwise, Arbortext Editor will stop responding, being in an infinite loop.
Examples
find -t '<emphasis>Editor</emphasis>'
while ($status == 0) {
delete_mark; insert_entity ed; find
}
Related Topics
If, while, for, switch
Functions as expressions and commands
Using expressions
if command