10,730
edits
Line 411: | Line 411: | ||
== Building a condition == | == Building a condition == | ||
Conditions allow you to specify when (under which conditions) a set of steps will be executed. A condition is a part of a rule, where you test a variable against a value and act in one way if the condition is met by the variable or another way if not. Conditions always evaluate to true or false. You can chain conditions using AND and OR logical operators. | |||
Similar to function steps, conditions also often have three parts: variable, operator, and argument(s). | Similar to function steps, conditions also often have three parts: variable, operator, and argument(s). | ||
Line 418: | Line 420: | ||
The variables in conditions mostly overlap with variables in function steps. Some additional variables exist: | The variables in conditions mostly overlap with variables in function steps. Some additional variables exist: | ||
; Configuration: Use to evaluate conditions related to user, app, and device. | ; Configuration: Use to evaluate conditions related to a user, app, and device. | ||
:{| class="wikitable" | :{| class="wikitable" | ||
| Configuration.platform || Equals || Android | | Configuration.platform || Equals || Android | ||
Line 430: | Line 432: | ||
; Relationship | ; Relationship | ||
* The relationship target, in case of questionnaires, gets the object from where you entered the questionnaire from in the user interface. For example, if you open a questionnaire from an Account form, the relation target is then the Account record. | * The relationship target, in case of questionnaires, gets the object from where you entered the questionnaire from in the user interface. For example, if you open a questionnaire from an Account form, the relation target is then the Account record. | ||
* The relationship source is the record from the form that you opened from questionnaire. However, opening forms of other records from a questionnaire is very rare. | * The relationship source is the record from the form that you opened from the questionnaire. However, opening forms of other records from a questionnaire is very rare. | ||
=== Operations === | === Operations === |