Reference Manual

NAME

while - repetetive, conditional command execution
SYNOPSIS
while var cmd ...

DESCRIPTION
Command while repeatedly executes the specified command if the settings variable var evaluates to true (non-zero).

After each iteration, the command sleeps for the number of msec specified in the settings variable interval.
The var is then re-evaluated and if still true, the cycle continues.

Any settings variable can be used, including the ifn variable (current interface number), that has a set of property suffixes that can be evaluated instead of the variable itself.

NOTES
The ! operator (negation) can preceed var.
SEE ALSO
all, for, if, printf, set,