SplitScript reference / Migration / Current timer state
Current timer state
Migration from ASL
Source pattern
-
ASL:
timer.CurrentPhase -
ASL:
TimerPhase.NotRunning -
ASL:
TimerPhase.Running -
ASL:
TimerPhase.Paused -
ASL:
TimerPhase.Ended
Canonical SplitScript
-
timer.CurrentPhasebecomestimer.state(). -
TimerPhase.NotRunningbecomesTimerState.NotRunning. -
TimerPhase.RunningbecomesTimerState.Running. -
TimerPhase.PausedbecomesTimerState.Paused. -
TimerPhase.EndedbecomesTimerState.Ended.
Use the canonical language and API symbols linked below.
Semantic difference
Replace timer.CurrentPhase with timer.state() and compare the exhaustive TimerState enum instead of relying on legacy numeric phase values.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
-
timer.state (standard library)
-
TimerState (type)