Skip to main content
The conditions editor has been updated to allow you to enter grouped conditions more easily into business rules.
Business rules that were entered using the old conditions editor aren’t affected. If you click Edit conditions, the old conditions editor is displayed and operates as before.
If you click Clear conditions on a business rule that had conditions entered using the old conditions editor, the conditions are removed. When you then click Edit conditions, the new conditions editor is displayed.
If you click Edit conditions on a business rule created before the conditions editor was updated that has no conditions entered, or on a new business rule, the new conditions editor is displayed.
Each time you create a business rule, you can set conditions to control when the rule runs. If you don’t set conditions, the rule always runs. If you set conditions, the rule only runs when the conditions you set are met. You’ll find the conditions in the first section of the rule editor. To set or edit conditions for a rule, click edit conditions to open the conditions editor. To remove all conditions, click clear conditions. Rule editor with edit conditions and clear conditions options When you click Edit conditions, the following screen is displayed for you to enter the conditions. Conditions editor screen In the top left corner is an AND / OR option for you to define whether the conditions for each rule or group of rules has to be met AND, or whether the conditions for only one of the rules or groups of rules has to be met OR. On the top right of the screen are two buttons, Add rule and Add group. Add rule - this adds a single line to the editor. Rules can be added individually or within a group. In the example below AND has been selected and two individual rules have been added. For the business rule to execute Yes / No question 1 must equal Yes AND Yes / No question 2 must equal Yes. Two individual rules joined with AND In the example below OR has been selected and two individual rules have been added. For the business rule to execute Yes / No question 1 must equal Yes OR Yes / No question 2 must equal Yes Two individual rules joined with OR Add group - this adds a group to the editor so you can add a group of conditions. Each group of conditions is evaluated separately. Click Add group and a new group is added. New group added to the conditions editor You can now add rules or groups to this group. These conditions are evaluated separately from other rules and groups. In the example below, two groups have been added, and within each group another group has been added. AND has been selected at the top of the conditions editor, so each group of conditions must be met for the business rule to execute. In this case Yes / No question 1 must Equal yes          AND Text question 1 must Not be blank         AND Text question 2 must not be blank AND Yes / No 2 question must Equal yes        AND Text question 3 must Not be blank        AND Text question 4 must not be blank Two groups with nested groups joined by AND If you change the selection at the top to OR Top selection changed to OR For the conditions to be met and the business rule executed Yes / No question 1 must Equal yes          AND Text question 1 must not be blank          AND Text question 2 must not be blank OR Yes / No 2 question must Equal yes         AND Text question 3 must not be blank         AND Text question 4 must not be blank Changing the AND / OR selection within groups changes how the conditions operate. In the example below, the selection for the groups within the two groups has been changed to OR. Group selections changed to OR For the conditions to be met and the business rule executed Yes / No question 1 must Equal yes          AND Text question 1 must not be blank          OR Text question 2 must not be blank OR Yes / No 2 question must Equal yes           AND Text question 3 must not be blank           OR Text question 4 must not be blank

Writing conditions

The first column in the editor lets you select a question from your flow. The drop-down list contains all the steps in your flow. If you click a step name, it expands to show all the questions on that step. Selecting a question from the drop-down list When you have selected a question the drop-down list in the second column contains all condition types. Select the relevant option. Condition types drop-down list
  • Is blank: nothing can be entered in the question selected in the first column. The third column is disabled for this condition.
  • Not blank: something has to be entered in the question selected in first column, it can’t be left blank. The third column is disabled for this condition.
  • Equals: what has been entered in the question selected in the first column MUST match what you entered in the third column. You can select the answer of another question or insert a value into the third column.
  • Not equals: what has been entered in the question selected in the first column MUST NOT match what you entered in the third column. You can select the answer of another question or insert a value into the third column.
  • Contains: what has been entered in the question selected in the first column MUST CONTAIN what has been entered in the third column, but it doesn’t have to be limited to that. You can select the answer of another question or insert a value into the third column.
  • Not contains: what has been entered in the question selected in the first column MUST NOT CONTAIN what has been entered in the third column, but can be anything else. You can select the answer of another question or insert a value into the third column.
  • Greater than: this only applies to numeric values, and the user must enter a number that’s greater than this value. You can select the answer of another question or insert a value into the third column.
  • Greater or equals: this only applies to numeric values, and the user must enter a number that’s greater than or equal to this value. You can select the answer of another question or insert a value into the third column.
  • Less than: this only applies to numeric values, and the user must enter a number that’s less than this value. You can select the answer of another question or insert a value into the third column.
  • Less or equals: this only applies to numeric values, and the user must enter a number that’s less than or equal to this value. You can select the answer of another question or insert a value into the third column.
  • Matches pattern: what has been entered in the question selected in the first column MUST match the selected pattern. You can add an ”@” and a ”.” for a quick and easy valid email address check, or “@flowforma.com” to ensure it’s from a FlowForma email address. Pattern matching is most useful when you use regular expressions to define complex conditions, so you can check if names begin with capital letters, or separate a 16-digit number into groups of 4 with a hyphen.
  • Does not match pattern: this works the same as matches pattern but checks that the value does not match a specified pattern.
The third column contains the item that’s compared to the value selected in the first column, based on the condition selected in the second column. The and/or options let you define whether all the conditions must be met. You can combine these values to create complex sets of conditions. Third column comparison values To delete a condition, click delete. This is permanent and can’t be undone. However, if this is an existing condition, you can close it to prevent changes and deletions from being saved. Delete a condition To delete a conditions group click delete next to the group. This is permanent and can’t be undone. However, if this is an existing condition, you can close it to prevent changes and deletions from being saved. Delete a conditions group After you’ve entered conditions, they’re displayed in the rule editor. Conditions displayed in the rule editor They’re also included in the rule summary in the Flow designer. Conditions in the rule summary in the Flow designer If you want to edit a condition that has already been created, click edit conditions and amend any of the fields displayed in the panel, or add additional ones if required, or remove ones that are no longer required. When you’ve made all entries or amendments, click OK. All conditions entered in the rule are saved, and you’re returned to the rule editor.