<or>
<or> is a Logic
component that functions as the boolean operator or applied to its enclosed <boolean> references.
Attributes and Properties
Attributes for <or>
Other (12)
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.
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. |
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 <or name="o">
Other (18)
$o.allowedErrorInNumbersnumber. Maximum allowed numeric error when comparing numbers.
$o.allowedErrorIsAbsoluteboolean. Whether allowedErrorInNumbers is interpreted as an absolute (rather than relative) tolerance.
$o.caseInsensitiveMatchboolean. Whether text comparisons ignore letter case.
$o.disabledboolean. Whether this component is disabled and cannot be interacted with.
$o.expandOnCompareboolean. Whether to expand math expressions before comparing.
$o.fixedboolean. Whether this component's value is fixed and cannot be modified.
$o.fixLocationboolean. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
$o.includeErrorInNumberExponentsboolean. Whether the allowed numeric error also applies to numbers in exponents.
$o.matchBlanksboolean. Whether unfilled blanks in a math expression count as a match.
$o.matchByExactPositionsboolean. Whether to match list values by exact position rather than by content.
$o.numPeriodicSetMatchesRequiredinteger. Number of consecutive elements of a periodic set required to count as a match.
$o.numSignErrorsMatchednumber. Maximum number of sign errors that still count as a match.
$o.simplifyOnComparetext. Level of simplification applied to math expressions before comparing.
$o.symbolicEqualityboolean. Whether children compared via this boolean use symbolic equality.
$o.texttext. The boolean rendered as a text string ("true" or "false").
$o.unorderedCompareboolean. Whether order is ignored when comparing list-like values.
$o.valueboolean. The boolean result of applying this operator to its child boolean values.
Common to all components (4)
$o.doenetMLtext. The DoenetML source code that produced this component.
$o.hideboolean. Whether to hide this component from the rendered output.
$o.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
$o.styleNumberinteger. The style number used to select this component's visual styling from the available style definitions.
Examples
Example: <or> in a <boolean>
The <or> component functions as the boolean operator or, and checks
to see whether any of the enclosed <boolean> references are true.
Example: <or> in an <award>
An <or> component is used to construct a compound boolean from three
referenced <boolean> components within an <award>.