Is there a way in Moodle Formulas to compare strings?
For example I would like to be able to
(1) determine if two strings are equal: x="ab" and y="b" then e.g. (x==y)?0:1 cannot be evaluated
Is there a function that would give f(x,y)=false and f(x,x)=true ( or f(x,y)=0 and f(x,x)=1 ) ?
(2) determine if a given string like x="ab" is in a list like ["0a","1a","ab","b1"]
and
(3) where in a string like "0a1aabb1" the string "ab" is located?
For example in the TI-Nspire there is a function called inString: inString( "0a1aabb1" , "ab" ) = 5