set
Sets or resets the value of one or more variables. Variable names are case sensitive and global so they do not need to be passed within separate ComScript scripts, but users should be careful not to duplicate variable names.
Attributes:
- var(s): the name of the variable(s)
- value(s): the value(s) for the variable. If setting multiple variables, the list or vars and values are comma separated and are matched in order.
Examples:
<set var="i" value="0" />
<set var="path" value="C:\mydata" />
<set var="message" value="data is valid" />
<set vars="a,b,c" values="1,2,3" />
Array Support (see section on arrays):
<set var="i@0" value="2" />
<set var="i@[j]" value="2" />