Skip to content

LogicSwitch:negative

since 26.1.0

Get / Set the logic switch negative attribute.

local negative = ls:negative([negative])

Parameters

Name Type Required Description
negative boolean optional

Returns

negative (boolean)

Examples

From the official Ethos documentation
ls = model.getLogicSwitch(0)
ls:negative(true)