SplitScript reference / Language / whileAttached

whileAttached

lifecycle block

whileAttached { ... }

Runs on every initialized attached update.

State and settings data has already refreshed when this action runs. The initialization poll is deliberately skipped. Falling through or returning true continues to the timer-decision actions; returning false skips all of them for this update.

Examples

Use whileAttached

whileAttached {
    if !dataReady {
        return false
    }
}