Skip navigation links
Expressively and easily automate your text documents with TExpressive!
Menu
TExpressive
Expressively and easily automate your text documents with TExpressive!

For function

Writes out the content in "Do" for each value between "From" and "To" (inclusive), putting the current value in the parameter specified by "Value".

Remarks

  • You can count down by making "From" bigger than "To" and using a negative "Step".

Arguments

Value (optional)
The parameter name to use to store the current loop value in.
LoopNumber (optional)
The name of the parameter that receives the looping number counter.
From
The value to start the loop with.
To
The value to end the loop with.
Step (optional)
The step to take when increasing the loop value.
Do
The content to repeat for each value in the loop.  May of course also contain literal text or a parameter reference, but that will mostly be less useful.