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 documentationls = model.getLogicSwitch(0) print(ls:state())