Context Variables
If you evidently put the mark to use context variables in the loop body, CTPP 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.
- __CONTENT__ - determined in all iterations inside the loop and contains data, which are located in the current cell of the array
Copyright © 2003 - 2010 CTPP Dev. Team | http://ctpp.havoc.ru