Submit a request
Submit a request

isUnit

Overview

The isUnit method checks if an expression contains the expected units.

isUnit is commonly used in conjunction with equivValue. For worked examples of combining isUnit with equivValue, please see equivValue Combining Methods section.

Additional Options

  • Allow thousands separator
    When enabled, authors can specify what separators can be used by the students. From the Thousand separator drop-down menu, you can select either dot, comma or space. Decimal separator menu can be found below Thousand Separator.
  • 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.

 

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