Difference between revisions of "ObjectType:variable"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 3: Line 3:
  
 
== Members ==
 
== Members ==
*[[DataType:string|string]] '''Name''': Name of the variable
+
''none''
*[[DataType:type|type]] '''Type''': Variable's data type
 
  
 
== Methods ==
 
== Methods ==
 +
''none''
  
 
== Returns ==
 
== Returns ==
Line 17: Line 17:
 
===Set a variable inside a currently running script===
 
===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.
 
*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 ==
 
== Operates On ==

Revision as of 18:51, 6 March 2006

Description

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

Members

none

Methods

none

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.

Operates On

_LSOBJECT *

See lstype.h

See Also