VARIABLE (a child element of STEP) is used to define a variable which stores a value for use as the value of other elements.
VARIABLE supports the use of its own child elements as values. For a list of supported child elements please refer to the tree menu on the left.
The stored value of a variable can be used in any child elements of STEP which supports the use of text or number as value. Therefore a variable with a text string as value can be used as a text value in other elements, while a variable with a number as value can be used as a numerical value in other elements.
In this example, VARIABLE is used to define a variable _DefaultWidth_ with the value as 500, and then this variable is used as the value of another element.
- <STEP>
- ......
- <VARIABLE>
- <NAME>_DefaultWidth_</NAME>
- <VALUE>500</VALUE>
- </VARIABLE>
- ......
- <OBJECT>
- <NAME>Map</NAME>
- <WIDTH>_DefaultWidth_</WIDTH>
- </OBJECT>
- </STEP>