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.CurrentPhase becomes timer.state().

  • TimerPhase.NotRunning becomes TimerState.NotRunning.

  • TimerPhase.Running becomes TimerState.Running.

  • TimerPhase.Paused becomes TimerState.Paused.

  • TimerPhase.Ended becomes TimerState.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.