Skip to main content
How to: Using Logic for Branching
Updated over a week ago

Personalize your learning experience by leveraging branches based on user decisions and actions.

Use-Case #1: How to set up custom paths through state-to-state branching using if/then logic.

VIDEO: SEE IT IN ACTION

DIY STEPS

  1. In Studio, navigate to the specific state from which you would like to build a branch to a different state(s) (with either pages or activities).

    1. In our video example, we create if/then logic for our End-of-Sim quiz.

  2. To add a branch based on if/then logic (IF a user does X, THEN the branch takes them to Y), on the right-hand side of a state, click on the plus sign that appears below the arrow.

  3. This will bring up a "Destination State Logic" box where you can inject your if/then logic.

  4. Click on the empty text box labeled "type," and choose the variable from the dropdown menu that corresponds to the Round, State, Activity, and Option on which you want your logic based.

    1. In our video example, this is "Current state: End of Sim quiz" + "End of Sim quiz, option 1"

  5. Depending on your needs, select "selected" or "not selected" from the dropdown and choose save.

  6. This auto-creates a new state that your learner will be sent to if that response is selected (or not selected).

    1. In our video example, instead of being sent to the congratulations message, your learner will now be directed to a message that says "You have failed, please try again."

  7. Finally, don't forget to share your updates with a friend!

Use-Case #2: Use if/then logic to set up custom paths for remediation

VIDEO: SEE IT IN ACTION

FAQ

Do I choose "ALL" Or "ANY" when setting up the "IF" part of my logic?

  1. ALL = EVERY item must be true (i.e. all items chosen must be true for the branch to work)

    1. Previous prompt/question is to “choose one” so, you can’t have “ALL”

  2. ANY = SOME/ANY of them are true and the branch will work

How many branches can I build off of one state?

You can build up to five (5) branches off of one state.


Did this answer your question?