while

Usage

while xpath|perl-code command-block

Description

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

Example 32. The commands have the same results

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