Command DO
Function:
Conditionally perform a command one or more times.
Syntax:
DO { command(s) } WHILE | UNITL [NOT] condition
or
DO ( command(s) ) WHILE | UNITL [NOT] condition
| command | Specifies the command to carry out. Parameter command can also be another WHILE or UNITL command. | ||
| WHILE | UNITL | Specifies either the WHILE keyword or the UNTIL keyword. | ||
| NOT | Carry out the command only if the condition is false. | ||
| condition | Is the following :-
|
Note:
Command DO is used to implement both a DO..WHILE loop and a DO..UNTIL loop.
Examples on using DO.
Also see command CALC, WHILE, UNTIL, FOR, Command Grouping and Batch Files.
