while command


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 1. The commands have the same results

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

Sections

Flow control