<isBetween>
<isBetween> is a Logic component
that returns the boolean value of true or false depending on whether a value is enclosed in a specified interval.
Attributes and Properties
Attributes for <isBetween>
Other (14)
allowedErrorInNumbersnumber. Default value: 0. Maximum allowed numeric error when comparing numbers.
allowedErrorIsAbsoluteboolean. Default value: false. Whether allowedErrorInNumbers is interpreted as an absolute (rather than relative) tolerance.
caseInsensitiveMatchboolean. Default value: false. Whether text comparisons ignore letter case.
expandOnCompareboolean. Default value: false. Whether to expand math expressions before comparing.
includeErrorInNumberExponentsboolean. Default value: false. Whether the allowed numeric error also applies to numbers in exponents.
limitsnumberList. Numeric limits used by the boolean operator (e.g. bounds for isBetween).
matchBlanksboolean. Default value: false. Whether unfilled blanks in a math expression count as a match.
matchByExactPositionsboolean. Default value: false. Whether to match list values by exact position rather than by content.
numPeriodicSetMatchesRequiredinteger. Default value: 3. Number of consecutive elements of a periodic set required to count as a match.
numSignErrorsMatchednumber. Default value: 0. Maximum number of sign errors that still count as a match.
simplifyOnComparekeyword. Level of simplification applied to math expressions before comparing.
| Value | Description |
|---|---|
none (default) | No simplification is applied before comparing. |
full | Fully simplify both expressions before comparing. |
numbers | Simplify numeric subexpressions only, leaving symbolic structure intact. |
numbersPreserveOrder | Like numbers, but does not reorder commutative operands. |
normalizeOrder | Reorder commutative operands into a canonical form without simplifying values. |
boolean. Default value: false. Whether the comparison is strict (e.g. uses < instead of ≤).
symbolicEqualityboolean. Default value: false. Whether children compared via this boolean use symbolic equality.
unorderedCompareboolean. Default value: false. Whether order is ignored when comparing list-like values.
Common to all components (9)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
disabledboolean. Default value: false. Whether this component is disabled and cannot be interacted with.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixedboolean. Default value: false. Whether this component's value is fixed and cannot be modified.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
hideboolean. Default value: false. Whether to hide this component from the rendered output.
isResponseboolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.
nametext. The name used to reference this component from elsewhere in the document.
styleNumberinteger. Default value: 1. The style number used to select this component's visual styling from the available style definitions.
Properties for <isBetween name="i">
Other (20)
$i.allowedErrorInNumbersnumber. Maximum allowed numeric error when comparing numbers.
$i.allowedErrorIsAbsoluteboolean. Whether allowedErrorInNumbers is interpreted as an absolute (rather than relative) tolerance.
$i.caseInsensitiveMatchboolean. Whether text comparisons ignore letter case.
$i.disabledboolean. Whether this component is disabled and cannot be interacted with.
$i.expandOnCompareboolean. Whether to expand math expressions before comparing.
$i.fixedboolean. Whether this component's value is fixed and cannot be modified.
$i.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$i.includeErrorInNumberExponentsboolean. Whether the allowed numeric error also applies to numbers in exponents.
$i.limitsnumberList. Numeric limits used by the boolean operator (e.g. bounds for isBetween).
$i.matchBlanksboolean. Whether unfilled blanks in a math expression count as a match.
$i.matchByExactPositionsboolean. Whether to match list values by exact position rather than by content.
$i.numPeriodicSetMatchesRequiredinteger. Number of consecutive elements of a periodic set required to count as a match.
$i.numSignErrorsMatchednumber. Maximum number of sign errors that still count as a match.
$i.simplifyOnComparetext. Level of simplification applied to math expressions before comparing.
$i.strictboolean. Whether the comparison is strict (e.g. uses < instead of ≤).
$i.symbolicEqualityboolean. Whether children compared via this boolean use symbolic equality.
$i.texttext. The boolean rendered as a text string ("true" or "false").
$i.unorderedCompareboolean. Whether order is ignored when comparing list-like values.
$i.valueboolean. The boolean result of applying this operator to its child math values.
Common to all components (4)
$i.doenetMLtext. The DoenetML source code that produced this component.
$i.hideboolean. Whether to hide this component from the rendered output.
$i.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$i.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: Basic use
The endpoints of the desired interval are entered as a list of numbers in the limits attribute.
By default, endpoints are included in the interval.
Attribute Examples
Attribute Example: strict
The strict attribute is included to exclude the endpoints of the interval.