model.createLogicSwitch
since 26.1.0
Create a logic switch.
model.createLogicSwitch()
Parameters
None.
Returns
the new logic switch
Examples
From the official Ethos documentationlocal ls = model.createLogicSwitch()
ls:name("My Logic Switch")
ls:function(LS_FN_AND)
print(ls:value())