Skip to main content
Advanced Branching
Stephan Botha avatar
Written by Stephan Botha
Updated over 2 years ago

The advanced branching functionality allows script routing to be controlled by the value of fields, rather than just which answer was clicked on. This could be either a field with a predefined value, or the value could be collected in the script. At the point of the branching, the system checks the value of the specified field and branches according to whether it is less than, equal to, or greater than, either a set value or the value in another field.

Advanced branching can be configure on either the question or answer setup ie it would be set on a question if the branching applied to all answers, or it would be set on an answer if the branching was only applicable to one of the answers.

To setup advanced branching on either a question or answer you will need to go to the Menu option Setup > More > Scripts

To know more about creating the script itself, please click here.

To edit an existing script simply click on the name and that will open the editor.

Select the relevant question or answer, then click the Edit Selected button (

chrome_2018-04-16_11-11-44

) which will bring up the question/answer editor.

To view the advanced branching select ‘Show’ and then select the field to be checked in the first listbox.

chrome_2018-04-16_11-23-07

This will then show you a set of fields that need to be populated for the advanced branching to work.


chrome_2018-04-16_11-03-06

An example statement is - If the value in the first field (selected in the first drop down) is > (Greater Than) the value in the second field (selected in the second drop down) then take me to the question selected in the last drop down. Please be aware that the Question you need has to be created before it will show in the list.

If you do not want to compare the first field selected against another field you can highlight the drop down and press Enter on the keyboard, then you can type in a value to check against.

Select the operator to determine how the value in the field will be processed. The options are explained below

>

Greater than

>=

Greater than or equal to

=

Equal to

<=

Less than or equal to

<

Less than

<>

Not equal to

Once you have added the branching you will just need to select save and this will take you back to the script editor.

Did this answer your question?