LuaScript Xojo Plugin |

# LuaScriptContext.IsBoolean Method

Checks if a item on the stack is a boolean variable.

IsBoolean(
index as Integer) as Boolean

#### Parameters

index
  The index of the element in the stack to check for. -1 is the element at top of the stack, the last element pushed onto the stack.

#### Returns

Boolean
  True if the item is boolean, else false

#### Remarks

#### See Also

LuaScriptContext Class