![]() |
When working with the boolean value
parameters true and false , make sure to use
these values in English. Do not use the equivalent of true and false in
your own language. |
|
Checks can only read parameters. As a consequence, you cannot use functions that have arguments in output.
|
Checks can use a specific keyword =>. statement1 =>
statement2 (if statement1 then
statement2).
Displays a message (if type is Warning or Information) and turns to red in the
specification tree each time statement2 is invalid as statement1
is fulfilled.
OK => KO |
![]() |
KO => KO |
![]() |
KO => OK |
![]() |
OK => OK |
![]() |
Note that the For statement is available for Action and Reaction scripts only.
The first usage of the For keyword is a loop
based on the element of a list. See syntax opposite. Where:
The body is executed Nth times where N is the number of elements of the list. |
et List.1(List) |
The second usage of the For keyword executes
a loop until an expression becomes false. See syntax opposite. Where:
Note that the second usage of the For operator can lead to infinite loops. |
For x while
predicate |
This loop executes until an expression becomes
false. See syntax opposite. Where:
|
let i = 1 |
Temporary variables can be declared at the beginning of the script by using the let keyword. A temporary variable does not persist as a parameter after the rule execution is finished.
|
For non digital values, the type has to be indicated:
let S(Surface)
S= split (...,...)
Temporary variables must be declared at the beginning of the rule, before any conditional instruction is specified.
let
S1(Surface)
|
If you want to manipulate a type, you can use the set keyword to set a variable of this type and type directly the attribute to read and/or write its characteristics.
|