-
Notifications
You must be signed in to change notification settings - Fork 0
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
Copyright 2020, 2021, 2022, 2023, 2025 © Leon Starr under MIT Open Source License
- Why they are problematic
- Instance attribute creation values
- Boolean values
- Special values
- Enumerated values
- Action block
- Statement
- Single line action
- Multiple dependent actions on a single line
- An action spread across multiple lines
- A conditional group of single line actions
- Comments
- Finding instances
- Attribute access
- Creation and deletion
- Subclass migration
- Creating a table from a class
- Creating a table with a definition
- Converting a table into a class
- Set operations on tables
- Set comparisons on tables
- Join
- Rename
- Extend
- Aggregation
- Rank
- Image
- Input values
- Signatures and name doubling
- Output values
- Execution order
- Sequential execution
- Conditional execution
- Signals
- Scrall has no for_each action
- Iteration