Context Variables
If you evidently put the mark to use context variables in the loop body, CT++ inserts seven special variables, called context vars. The names of these variables start with the double underline, this fact points to their system meaning.
Set of values for "context vars":
- __FIRST__ - sets to "1" during the first loop iteration, in other cases not defined.
- __LAST__ - sets to the last iteration number, otherwise is not defined.
- __INNER__ - accommodates the number from the second to the pre-last iteration, otherwise undefined
- __ODD__ - the number of an odd iteration. For the even one - undefined.
- __COUNTER__ - the number of current iteration.
- __EVEN__ - opposite to the __ODD__ variable.
- __SIZE__ - the whole number of the loop iterations.
Copyright © 2003 - 2005 CTPP Dev. Team | http://reki.ru/products/ctpp