Skip to content

Scalar Switch Action

Leon Starr edited this page Sep 23, 2023 · 4 revisions

A scalar switch action takes a Scalar Flow as input. This flow must provide a value defined as part of an enumerated type.

Action language will provide this flow either as a temporary variable or an output of some other Action.

Here is an example in Scrall:

valve position? {
    .open : close -> my valve
    .closed : open -> my valve
}

The above example takes its input from the valve position temporary variable and applies one case for each possible enumerated value.

Identifiers

  1. Action + Activity + Domain

Attributes

No non-referential attributes

Clone this wiki locally