Skip to content

model.getLogicSwitch

since 26.1.0

Return a logic switch by name or by index.

model.getLogicSwitch(Name)

Parameters

Name Type Required Description
Name string yes or Index (integer)

Returns

logic switch

Examples

From the official Ethos documentation
local ls = model.getLogicSwitch("Test")
local ls = model.getLogicSwitch(0)