Skip to content

LogicSwitch:maxDuration

since 26.1.0

Get / Set the logic switch max duration.

local maxDuration = ls:maxDuration([maxDuration])

Parameters

Name Type Required Description
maxDuration integer optional

Returns

maxDuration (integer)

Examples

From the official Ethos documentation
ls = model.getLogicSwitch(0)
ls:maxDuration(100)