SplitScript reference / timer / undoSplit

timer.undoSplit

Function

timer.undoSplit() -> None

Undoes the previous split.

The timer moves back one segment when its current state permits it. This is an explicit timer mutation and is separate from autosplitter snapshot history.

Effects: writes timer state

Runtime behavior: available everywhere; synchronous

Examples

Correct an automatically detected false positive

if falsePositiveDetected {
    timer.undoSplit()
}