Rules

Assignment rules are used to link properties of controls with variables, properties etc..

For example, to display the value of a string variable in a text field.

Rules can be created for each property that has a gear icon.


Clicking on the gear icon for open the rule editor for the selected property.




The rule editor opens. Here, the property of the component with which the rule editor was opened is preselected first ("Visible" in this case).

To create a new rule, click on the plus icon in the toolbar.




You have the possibility to add a condition to the rule.  The input field for the conditions is permanently visible in the rule editor.

To create a new condition, use the plus icon next to "Condition".




By clicking on the arrow next to the text box opens a list of all available objects that are available for selection.

These can be identified by the corresponding symbol. This applies to all text boxes. The selection is made by clicking.

A search function is also possible here by writing directly into the text box to search for terms.

So, all matching objects of the search are displayed.





Depending on what was selected, the icon in front changes. In the example below the variable “System.hour” was selected.

With a click on the pipette symbol the selection can be made in the old input system, if this is desired.

This applies everywhere where the pipette symbol is displayed.




After defining the condition, another condition can be added from version Gazelle. This was not possible in previous versions.

For another condition, repeatedly use the plus icon next to "Condition". So, you can add as many conditions as you like.

With a click on the garbage can icon on the right, conditions can be deleted again.




In addition, you have the option to decide whether it is sufficient that at least ONE of the created conditions applies or whether ALL

conditions must apply. Use the "OR" and "AND" switches for this purpose. The use of the switch is available from the second condition.

Before it´s grayed out.




Within the conditions you can also add groups. More conditions can then be added to the groups. In the following example this would mean:

Either if the time is 10 OR (switch to "OR") if the group block applies. Within a group it is possible to choose between "OR" and "AND" again

and to interact with the same options. If the first switch would be set to "AND", then the first condition AND the group block would have to be

fulfilled with at least ONE of the conditions contained therein.


This way complex conditions can be defined.




When all the entries have been made and the rule defined, click on the check-mark to create the rule.




For properties that have been assigned a rule, the name of the property is written in bold and the gear icon is highlighted in blue.




To negate values, use the exclamation mark button to the left of the value when creating a rule.

When this button is clicked, it is highlighted in blue and the value is negated.




If you want to output a value directly as text instead of as an element, it is enough to click on the element name.

The respective element symbol then changes to quotation marks. In the example below, a property becomes a text.

So, not the text that is in Button 2 is output, but the text “Page.Button2.Text” itself as a string.

This would be useful if two identifiers in the system have the same name and you don´t want to have the element itself, but the name at this time.