XML Script logo
Command _for
Attribute

to, a auto-interpolated number, defaults to '1'

[optional] the final value of the counter variable.

Attribute

from, a auto-interpolated number, defaults to '1'

[optional] the starting value of the counter variable.

Attribute

index, a string, defaults to 'index'

[optional] the name assigned to the counter variable.

Description

Loops across the content of the tag. At the start of each iteration the value of the counter variable (the attribute whose name is specified by 'index') is set equal to the iteration number. Iteration number starts at 'from' and is incremented by one after each iteration of the loop until 'to' is reached, or until a <_break /> command is processed.

Examples of use

                                
                        

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited