*DOWHILE

*DOWHILE, Par
Loops repeatedly through the next *ENDDO command.

Compatible Products: – | Pro | Premium | Enterprise | Ent PP | Ent Solver | DYNA

Argument Descriptions

Par

The name of the scalar parameter to be used as the loop index. There is no character parameter substitution for the Par field.

Notes

*DOWHILE loops repeatedly through the next *ENDDO command as long as Par is greater than zero. The block of commands following the *DOWHILE command (up to the *ENDDO command) is executed repeatedly until some loop control is satisfied. Printout is automatically suppressed on all loops after the first (include a /GOPR command to restore the printout). The command line loop control (Par) must be input; however, *IF within the block can also be used to control looping [*EXIT, *CYCLE]. One level of internal file switching is used for each nested *DOWHILE. Twenty levels of nested do-loops are allowed.

This command is valid in any processor.

Menu Paths

This command cannot be accessed from a menu.

Release 18.2 - © ANSYS, Inc. All rights reserved.