LuaScript Xojo and Real Studio Plugin

LuaScriptContext.GetInteger Method (console safe)

Fetches a integer value from the stack

GetInteger(
   index as Integer,
   popStack as Boolean) as Integer

Parameters

index
The index of the element in the stack to fetch from. -1 is the element at top of the stack, the last element pushed onto the stack.
popStack
True if you want the value to be popped off the stack, false if you want it to remain there.

Returns

Integer
The requested value as integer

Remarks

See Also

LuaScriptContext Class