Conditions
What is a condition ?
Conditions can be used to trigger a controller only under specific circumstances. In order to create a condition, you will need to have external variables to compare values.
In the following example, both Button element and Car element share their parameters as external variables for the controller:
You can then use these external variables inside a condition.
How to create a condition
Simple condition
- Click on the Set Conditions button
- Then click on the Add condition button
One condition will be added, the condition is composed of two operands and one operator :

- — First Operand : left operand of the condition, it represents the external variable that you want to test.
- — Element type : type of element you are testing. Corresponds to a lifeline.
- — Element parameter : available parameters of the element.
- — Operator : comparison operator.
==: Equal To.!=: Not Equal To.>: Greater Than (only available for numeric parameters).<: Less Than (only available for numeric parameters).<=: Less Than or Equal To (only available for numeric parameters).>=Greater Than or Equal To (only available for numeric parameters).
- — Second Operand : right operand of the condition, it represents the value used to verify the condition.
- — Constant/Variable field : choose between a constant value or an external variable.
- — Constant value/Variable parameter : input the constant value or variable parameter (if variable is selected).
Multiple conditions
If you click on the Add condition button , you can add multiple conditions.
attention
If multiple conditions are defined, all of them must be satisfied (logical AND). They are not evaluated as alternatives (OR)
Examples
Below are a few examples of conditions :
Simple Equal condition

Multiple conditions
