![]() |
Reference Manual |
NAME
while - repetetive, conditional command executionSYNOPSIS
while var cmd ...DESCRIPTION
Command while repeatedly executes the specified command if the settings variable var evaluates to true (non-zero).NOTESAfter 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.
The ! operator (negation) can preceed var.SEE ALSO
all, for, if, printf, set,