Submit a request
Submit a request

stringMatch

Overview

The stringMatch method is used for literal string comparison. This compares the value set by authors in validation against the student's response and evaluates whether they are the same or not. stringMatch is a simple comparison method: it does not take the syntax and data type set in the validation area into account.

Additional Options

  • Ignore leading and trailing spaces
    Ignores spaces before and after a value, i.e. "a" will be treated as "a".

  • Treat multiple spaces as one
    Multiple spaces will be ignored and treated as one, i.e "a b" is the same as "a b".

  • Inverse result

    Enabling this means that the value specified in the Value field will not be accepted as the correct answer. It is a useful way of excluding very specific answers from validation.
    Use case: Students are asked to enter something symbolically equivalent to (x+2)^2, however you don't want them to enter the same expression and score points for this response. In this case, enabling Inverse Result will exclude (x+2)^2 from correct responses.

     

Was this article helpful?
0 out of 0 found this helpful

Did you arrive here by accident? If so, learn more about Learnosity by clicking here.