You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chris Yates edited this page Aug 11, 2023
·
3 revisions
Plot Branching Navigation (PBN) allows different "paths" to be taken through the steps depending on the response to a step. This is often found in surveys, e.g. go to Q10 if you answered "Yes", go to Q15 if you answered "No".
The steps array defines all possible branches, branches being nested arrays:
The step event handler defines which branches to use by calling Step::setBranches(). For example, if the user selected in the dog the cat_or_dog step, the step event handler would: