Difference between revisions of "ObjectType:variable"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
== Examples == | == Examples == | ||
+ | ===Set a variable inside a currently running script=== | ||
+ | *Script[KillCount].Variable[TotalKills]:Set[0] - Will set the variable called TotalKills in the currently running script called KillCount to zero. | ||
+ | ===Display a variables name=== | ||
+ | *echo ${Script[KillCount].Variable[TotalKills].Name} | ||
+ | ;Output | ||
+ | TotalKills | ||
+ | ===Display a variables type=== | ||
+ | *echo ${Script[KillCount].Variable[TotalKills].Type} | ||
+ | ;Output | ||
+ | int | ||
== See Also == | == See Also == |
Revision as of 21:33, 26 August 2005
Contents
Description
The variable data type allows a variable to be accessed through alternate methods
Members
Methods
Returns
Same as the variable type's "To String"
Inherits
The variable's type
Examples
Set a variable inside a currently running script
- Script[KillCount].Variable[TotalKills]:Set[0] - Will set the variable called TotalKills in the currently running script called KillCount to zero.
Display a variables name
- echo ${Script[KillCount].Variable[TotalKills].Name}
- Output
TotalKills
Display a variables type
- echo ${Script[KillCount].Variable[TotalKills].Type}
- Output
int