Skip to content

Timer:stopCondition

since 26.1.0

Get / Set the stop condition of the timer.

timer:stopCondition([condition])

Parameters

Name Type Required Description
condition Source optional omit to read the current value

Returns

None or condition (Source)

Examples

From the official Ethos documentation
timer = model.getTimer(0)
timer:stopCondition(nil) -- will set the default stop condition
timer:stopCondition(CATEGORY_NONE) -- will set a custom stop condition
print(time:stopCondition())