View definition

(*State).ToBoolean

Defined in github.com/Shopify/go-lua/lua.go

Description

ToBoolean converts the Lua value at index to a Go boolean. Like all tests in Lua, the only false values are false booleans and nil. Otherwise, all other Lua values evaluate to true.

To accept only actual boolean values, use the test IsBoolean.

http://www.lua.org/manual/5.2/manual.html#lua_toboolean

ToBoolean is referenced in 5 repositories

github.com/Shopify/go-lua github.com/Shopify/goluago github.com/dimiro1/experiments

...