Difference between revisions of "TLO:Variable"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
*[[DataType:variable|variable]] '''Variable['''name''']''' | *[[DataType:variable|variable]] '''Variable['''name''']''' | ||
:Retrieves a generic variable object from the given variable name | :Retrieves a generic variable object from the given variable name | ||
+ | *[[DataType:variable|variable]] '''Variable['''array[#]''']''' | ||
+ | :Retrieves a variable object representing one element of an array. Note that to follow LavishScript syntax, the array member access must either be escaped or quoted, e.g. <tt>${Variable["MyArray[1]"}</tt> or <tt>${Variable[MyArray[1\]]}</tt>. | ||
== Examples == | == Examples == |
Revision as of 18:55, 6 March 2006
Forms
- variable Variable[name]
- Retrieves a generic variable object from the given variable name
- variable Variable[array[#]]
- Retrieves a variable object representing one element of an array. Note that to follow LavishScript syntax, the array member access must either be escaped or quoted, e.g. ${Variable["MyArray[1]"} or ${Variable[MyArray[1\]]}.