Skip to content

LogicSwitch:values

since 26.1.0

Get / Set the test values of the logic switch.

local values = ls:values([values])

Parameters

Name Type Required Description
values table of Source optional

Returns

values (table of Source)

Examples

From the official Ethos documentation
ls = model.getLogicSwitch(0)
ls:values({{category=CATEGORY_TELEMETRY, member=0}, {category=CATEGORY_ANALOG, member=0}})