This tutorial shows how to use a Branch Node to send participants down different paths in an experiment based on their responses in a questionnaire. In this example, we want to branch participants based on the age they enter. If participants enter a number below 18, they will be branched to a Reject Node. If participants enter a number higher than 18, they can continue with the rest of the experiment.
In the questionnaire, a Number Entry component is used to collect the participant's age. Click 'Show Additional Settings' and use the Save to Store toggle to save the response to a field in the Store called ‘age’. You can find some more information about saving to the Store in our Store guide.
Then, in the Branch Node in the experiment, we create two branches: one named ‘under18’ and a second named ‘over18’. We set up a rule to assign participants to each branch. First, we select the Store field where we saved the relevant response ('age'). Then, we select a comparison rule. For the 'under18' branch, this is 'less than'; for the 'over18' branch, this is 'greater than or equal to'. Finally, we enter the reference value we want to compare our 'age' field to, which is 18.
We can then preview the experiment multiple times to test the different branching options and make sure it's all working correctly.
This tutorial shows the new Experiment Builder interface. If you’re still using the classic interface, it will appear slightly different.