-
MathType
-
Wiris Quizzes
-
Learning Lemur
-
CalcMe
-
MathPlayer
-
Store FAQ
-
VPAT for the electronic documentation
-
MathFlow
-
BF FAQ
-
Miscellaneous
-
Wiris Integrations
Introduction
Reading time: 2minThis powerful feature enables you to create dynamic and sophisticated logical conditions using the flexibility of CalcMe code. Unlike standard logic options, this feature lets you seamlessly handle random values, complex criteria, and custom conditions directly within your educational content.
With Algorithm Mode, you're empowered to:
- Control the generation of random values with precision.
- Define detailed conditions to exclude or enforce specific outcomes.
- Create intricate, custom relationships between values and expressions.
All this is made possible through CalcMe, a powerful programming language already integrated within Wiris products. Even if you're new to programming, CalcMe offers a straightforward approach to defining precise logical constraints without the complexity often found in traditional programming languages.
👉 Need examples of Algorithm Mode code? Check out the Examples section for more details!
How to use it
Unlocking the power of Advanced Logic is straightforward. Follow these steps to start creating dynamic and precise questions.
Enabling Algorithm Mode
- To enable Algorithm Mode: First, open the random variables modal in the question editor. Here, you'll find a new toggle switch labeled “Algorithm Mode”. Simply click this toggle to activate the feature. Once enabled, you will see a code input box appear, ready for your custom logic.
-
Writing your code: In this box, define your logical conditions using CalcMe. CalcMe's syntax is designed to be intuitive, even if you have little to no programming experience.
You can define variables and set the conditions they must meet. - Saving and using your variables: Once you are satisfied with your logical conditions, click the “Save Changes” button. The random variables and expressions you have defined will now be available to use throughout the question's statement and answer fields, just like any other variable.
Remember: Now that you've saved your variables, you're ready to use them!
Important: Always add a hash (#
) before each variable name in your question text.
Frequently Asked Questions (FAQs)
I already have my logic built in a CalcMe worksheet. How can I use it in Learning Lemur?
You can easily convert an existing CalcMe worksheet into code that is compatible with the Advanced Logic feature.
- In your CalcMe worksheet, find and click the Transform sheet to code button.
- This action will generate the code that represents your entire worksheet.
- Copy the generated code.
- Paste it directly into the Advanced Logic input box in Learning Lemur.
Your logic is now ready to be used in your question!
What if my CalcMe code is in a language other than English (e.g., Spanish, French)?
The Advanced Logic feature supports only CalcMe code written in English.
However, you can use CalcMe itself to translate your code automatically before you copy it.
- Open your worksheet in CalcMe.
- Navigate to your user Settings.
- Change the language setting to English.
- You will notice that the code on your worksheet instantly and automatically translates to the English syntax.
- Now, simply copy this translated English code and paste it into the Advanced Logic input box in Learning Lemur.