Hi,
I'm new to the Moodle Formulas question type and am testing it/comparing it with STACK before installing one of these on our production site.
I've made some simple questions using Formulas (including some with embedded graphs using JSXGraph), but one thing I would like to be able to do is restrict random instances of the variables and I can't see in the documentation how this could be achieved.
For instance, I have a simple question asking students to expand brackets to give an algebraic expression. The question contains 3 local variables a, b & c and I've defined the sets of possible values that these variables can take. I want the set of possible values for b & c to be identical, but I don't want b = c in any specific instance. Can I achieve this in Formulas? I see there is a does not equal operator (!=) but it throws up a syntax error when I try to set a global variable b != c;
As a side note/follow up to this, in what circumstances/syntax can I use the comparison operators, e.g., less than, greater than, does not equal, etc.? I've tried using them in local and global variables but they always throw up syntax errors, e.g., b < c;, or b != c;.
Thanks in advance for your help!