GiD - The personal pre and post processor

*for ... *end

*for, *end, *break. The syntax of this command is equivalent to *for in C-language.

*for(varname=expr.1;varname<=expr.2;varname=varname+1)
*end for


The meaning of this statement is the execution of a controlled loop, since varname is equal to expr.1 until it is equal to expr.2, with the value increasing by 1 for each step. varname is any name and expr.1 and expr.2 are arithmetical expressions or numbers whose only restrictions are to express the range of the loop.
The command *break inside a *loop or *for block, will finish the execution of the loop and will continue after the *end line.


Example:

*for(i=1;i<=5;i=i+1)
variable i=*i
*end for

COPYRIGHT © 2022 · GID · CIMNE