Compare two revisions of: Explanations

... ... @@ -37,7 +37,7 @@ The optional condition is an expression that can be evaluated to true of false.
37 37 | `length(arg)` | Returns the length of a string. _arg_ is a variable or an answer reference.| `length(ans)=length(myvar) OR length(ans)>3` |
38 38 | `count(symbol, arg)` | Returns how often the _symbol_ occurs. _arg_ is a variable or an answer reference. | `count((,ans)=count(),ans)`, `count(+,ans_1)=0`, `count(1,ans)=2` |
39 39 | `valid(arg)` | Checks if the given answer is a valid mathematical expression. _arg_ is an answer reference. | `valid(ans)` |
40 -| `equal(arg1, arg2)` | Checks if the two expressions are algebraic identical. If `\checkAsFunction` is set, the comparison will be numerical with the given parameters of `checkAsFunction`. _arg1/arg2_ is a variable or an answer reference. | `equal(ans_2, myvar)` |
40 +| `equal(arg1, arg2)` | Checks if the two expressions are algebraic identical. If this check is not successful a numerical comparison follows.| `equal(ans_2, myvar)` |
41 41 | `equalString(arg1, arg2)` | Checks if the string representation of the two arguments are identical. _arg1/arg2_ is a variable, an answer reference or a string. | `equalString(Hallo,ans_5)`, `equalString(ans,myStringVar)` |
42 42 | `equalTrimmedString(arg1,arg2)` | Same as `equalString` but the arguments are trimmed first. | |
43 43 | `equalChoice(arg, choices)` | Compares an answer with the given _choices_ representation. For mc.unique its the choice number that is selected by the user. For mc.yesno and mc.multiple its a string of zeros and ones indicating which choices are selected by the user. E.g. 011 means that the last two choices are selected, but not the first. The wildcard '?' can be used. E.g., 0?1 means, that the third choice is selected, but not the first. If the second choice was selected doesn't matter. This of course only works for answer/question type _mc.yesno_ and _mc.multiple_. _arg_ is an answer reference. | `equalChoice(ans,4)`, `equalChoice(ans,011001)`, `equalChoice(ans_2,011?01)`<br><br>[example in WebMiau](https://miau.mumie.net/web-miau/editor/content%2Fexamples%2Fexplanations%2Fprb_differentiated_feedback_2.src.tex)|
44 44