toBoolean method

bool toBoolean(
  1. int index
)

Converts the Lua value at the given index to a boolean value (false or true).

Lua Docs.

Implementation

bool toBoolean(int index) => lua.lua.lua_toboolean(pointer, index) == 1;