ObjectType:variable

From Lavish Software Wiki
Revision as of 22:24, 15 December 2005 by Lax (talk | contribs)
Jump to navigation Jump to search

Description

The variable data type allows a variable to be accessed through alternate methods

Members

  • string Name: Name of the variable
  • type Type: Variable's data type

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


Operates On

_LSOBJECT *

See lstype.h

See Also