System Coupling supports the use of conditional, Boolean, and Logical statements in expressions. These statements can be used to build expressions, which in turn can be used as operands in other expressions.
- Conditional statements
Conditional statements use the if-else construct to test a condition and optionally provide actions to be taken if the condition is met and/or is not met.
- Boolean/Logical statements
Boolean/Logical statements use Boolean and numeric Logical operators to set variable values.
Example 17: Expressions using conditional and Boolean/Logical statements
500 [N] if diameter >= 15 [mm] else 250 [N]500 [N] if diameter >= 15 [mm] else 250 [N]