Lingco allows instructors to add logic, variables, and tags to activities they create. This provides a more personalized learning experience for your students.
Before you start adding logic to an activity that you create, you should first click on the activity settings and enable Show One Question at a Time and disable Allow Going Back. This ensures that students can't workaround the logic you implement into your activity.
You add logic to question sections, not specific prompt types within question sections. Start by adding a question section, then adding your content and prompts, then click on the three dot icon next to the title of the question section, and click Add Logic.
NOTE: It may be beneficial to have the activity you're creating completed, thinking about how you'd like the logic to work. This will help when setting logic rules for each question section.
Adding Logic Rules
You'll see options for logic rules appear at the bottom of the question section. Now, all you need to do is set the conditions and actions to your liking.
If you click on Add Condition, you'll see that you can pick "Rule" or "Rule Group". If you select "Rule", you'll then be prompted to select a variable.
Once you select a variable, you have the option to set it up as you wish. Here's an example of how it could look.
Next, you can add an action. Click on Add Action under the word "Then" and select which action you'd like. Here's an example of how it could look.
Finally, you can set another action for all other cases. Here's how a complete set of logic rules could look for a question section.
Once you're done setting the logic rules, you can click on Hide Logic Rules to minimize them. You can click on Show Logic Rules if you'd like to view the rules you've set.
Logic in the Example Explained
The logic for the example above states that if the student received a 100% total on the question section, then they'd be taken to the time lesson.
If the student didn't receive a 100% total on the question section, then they'd be taken to the numbers lesson.
You can also tag question sections and use those tags as variables when setting logic rules. To add a tag to a question section, click on the three dots icon next to the title of the question section and click Add Tags.
Type out a name for the tag, then click enter or return on your keyboard for it to register.
For this example activity, I tagged three different question sections as "Practice". On the third question section, I then added logic rules, using the tag "Practice" as the variable.
Logic in this Example Explained
The logic for this example states that if the student got over 65% (two or three out of the three question sections tagged as "Practice") correct, then they're taken to the question section "Done" - meaning they're done with the activity.
If the student didn't get over 65% percent, then they're taken to the question section "More Practice".
You can also add your own variables to further specify logic rules within an activity. To add a variable, click on the activity settings and click on Add Variable.
You'll then be able to name the variable, select the type of variable, and write a description. Here's an example of a variable.
After you've created the variable, you'll be able to apply it to logic rules within the activity. For this example, I added this variable to a set of logic rules by clicking on Add Action then selecting Set Variable from the drop-down menu.
This allows you to select the variable you've created and set the rules.
Logic in this Example Explained
The logic for this example states that if a student received greater than 65% total on question sections tagged as "Practice", then they'd be taken to the question section "Done" - meaning they're done with the activity. This also states that the student "passed" the assignment.
If a student didn't receive greater than 65% total on the question sections tagged as "Practice", then they'd be taken to the question section "More Practice".
To check how your logic looks and works within the activity, you can click on the Logic Map icon.
For the example used in this help article, this is how the logic map looks.
Testing the Logic
As a best practice, you should test out the logic yourself before assigning the activity to your students. Once you've finished adding the logic rules to your activity, click on Save Activity (or Create Activity if this is your first time working on it).
You'll then be able to complete the activity from a student's perspective to verify that the logic you implemented works correctly.