CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Tecplot (http://www.cfd-online.com/Forums/tecplot/)
-   -   Tecplot 10:Question about internal |LOOP| variable (http://www.cfd-online.com/Forums/tecplot/7846-tecplot-10-question-about-internal-loop-variable.html)

Matt Morse July 19, 2004 20:08

Tecplot 10:Question about internal |LOOP| variable
 
Is there any way that you can change the interval that |LOOP| counts at in a macro? For instance, I want |LOOP| to go by 2's instead of 1's so I can read 2,4,6,8,10,12, etc.

Thanks.

Lionel Larcheveque July 21, 2004 11:26

Re: Tecplot 10:Question about internal |LOOP| vari
 
Hi,

I think you can't change the increment for |LOOP|. However you can define an auxiliary variable |DUMMY| instead.

$!Varset |DUMMY|=2

$!Loop NUMBER_OF_ITERATIONS

#use |DUMMY| as a counter

$!Varset |DUMMY|+=2

$!Endloop


All times are GMT -4. The time now is 17:11.