while

Usage

while expression command-or-block

Description

Execute the command-or-block as long as the given expression evaluates to a non-emtpty node-list, true boolean-value, non-zero number or non-empty literal.

Example 55. The commands in this example do the same thing

xsh> while /table/row remove /table/row[1];
xsh> remove /table/row;