SplitScript reference / SettingsView / contains

SettingsView.contains

Method

SettingsView.contains(key: String) -> bool

Reports whether a value setting declares the stable host key.

This distinguishes a known disabled boolean from an unknown key. Literal keys are checked and completed against boolean, choice, and file declarations. A literal naming a declared value is always true and is warned with a semantics-preserving rewrite; use a typed member to read that setting's value instead. Computed strings may still be unknown at runtime. Headings are visual structure rather than values and are not included.

Parameters

  • key: The exact stable host-map key.

Effects: pure

Runtime behavior: available everywhere; synchronous

Examples

Advance a data cursor even when its known split is disabled

if settings.contains(checkpointKey) {
    checkpointIndex += 1
}