Skip to content

An action spread across multiple lines

Leon Starr edited this page Nov 6, 2023 · 3 revisions

An action may require more than one line of text to express.

A long statement is split across lines using the back slash \ character. You don’t need it if you split the line inside a parenthesized expression, an if-then-else structure, a signal action or any other action where the structure would be unambiguous.

Examples:

x = 1
y = 5
a really long variable\  // Bad naming, but backslash needed
name = some value
best cabin .= in service shafts/Cabin(1,
    ^-Estimated travel delay( Floor : /R4/Floor.Name, Calling dir: ^dir )
) // action split across two lines using open parenthesis

Set destination( Shaft ID : Shaft, Floor name : Destination )
    => UI // action split using single back slash

Introduction

Model semantics

Flows (as Variables)

Constants and literals

Structure of an activity

Accessing the class model

Data flow


Grammar and parsing notes

Components

Clone this wiki locally