Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Variables
  numvar
  getvar
  makevar
getvar [[cmud_lua_getvar]] 
getvar

Syntax: zs.getvar(id)

Returns the Variable object of the specified variable. The id can be either the name of the variable, or the index from 1 to zs.numvar.

This is required method to access the properties of the zs Variable object.

For example:
myvar = zs.getvar("MyVariable")

echo("----------------")

print(myvar.class)

echo(myvar.name)

echo(myvar.value)
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net