Skip to content

LogicSwitch:name

since 26.1.0

Get / Set the logic switch name.

local name = ls:name([name])

Parameters

Name Type Required Description
name string optional

Returns

name (string)

Examples

From the official Ethos documentation
ls = model.getLogicSwitch(0)
ls:name("My logic switch")
print(ls:name())