Difference between revisions of "ObjectType:variable"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 25: Line 25:
 
;Output
 
;Output
 
  int
 
  int
 +
 +
 +
== Operates On ==
 +
<tt>_LSOBJECT *</tt>
 +
 +
<small>See lstype.h</small>
  
 
== See Also ==
 
== See Also ==

Revision as of 22:24, 15 December 2005

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