The Logic Builder allows users to create conditional expressions using either a visual interface or a manual expression editor within IntelliBuilder. The Logic Builder appears when setting conditions at the option, question, or group level. It defines the "if" statement that controls when something should be shown or applied.
Overview
- Choose between the visual builder or the manual Expression Editor found at the bottom of the modal.
- The visual builder uses simple dropdown menus to guide the user throughout the building process.
- For those more comfortable writing logic directly, the Expression Editor supports entering logical expressions manually. Toggle
the editor "on" to activate it.
- Conditional statements from the visual builder are instantly reflected in the Expression Editor. However, changes made to the Expression Editor will not be reflected in the visual editor.
- The visual builder allows up to two groups of conditional statements. For more complex logic, use the Expression Editor or enter expressions directly in the survey's SPL.
- To edit a saved logical expression applied to a question property or attribute, click the
wrench icon.
Note: Directly editing expressions in the Expression Editor will not update the visual builder. However, the final expression entered will be applied to the logical statement.
Visual builder
Users can add as many conditional statements as needed.
Within a group of related conditional statements, if ALL is selected in the dropdown, the operator AND is used to join each conditional statement. If ANY is selected, the operator OR is used to join each conditional statement.
If a second group of conditional statements is needed, click Add Group and choose an operator to join the two groups. A maximum of two groups can be added with the visual builder.
Tip! Review the logical expressions and the operator used to join two condition groups. The selected operator affects how the conditions are evaluated.
Example
In the example below, Q8 should be shown only to respondents who selected option 1 at Q6 (walking/running/jogging) or options 2, 3, or 4 at Q7 (two or more times a week).
At Q8, follow these steps:
- Enter editing mode and add a new property.
- Select Show if.
- At Group 1, choose ANY as the operator to ensure that any of the conditions listed within Group 1 is considered valid.
- Choose Q6 from the first dropdown.
- Choose is for the selection criteria.
- Choose Walking/Running/Jogging for the answer option.
- Click Add Condition.
- In the new dropdown select Q7.
- Select is one of for the selection criteria.
- Select 2-3, 4-5, and 6-7 for the answer options.
- Click Apply.
The final expression now appears in the show if
property. Click the wrench icon to edit it anytime.
Comments
0 comments
Please sign in to leave a comment.