Skip to content

LogicSwitch:state

since 26.1.0

Get the logic switch state.

local state = ls:state()

Parameters

None.

Returns

state (boolean)

Examples

From the official Ethos documentation
ls = model.getLogicSwitch(0)
print(ls:state())