ReferencebooleanList

<booleanList>

<booleanList> is a Logic component that stores multiple <boolean> components within a list.

Attributes and Properties

Attributes for <booleanList>
AttributeTypeValues
asList = "…""true" "false"
maxNumber = "…"number
unordered = "…"boolean"true" "false"
Props for <booleanList name="b">
PropertyType
$b.maxNumbernumber
$b.numComponentsnumber
$b.numValuesnumber
$b.unorderedboolean

Example: Accessing an item in a <booleanList>

Individual <boolean> components are listed directly between the opening and closing <booleanInput> tags, with spaces to separate list items.

The individual list items can be accessed with the index of the desired item.


Example: <booleanList> from user-input

The user is prompted to provide three agree/disagree type responses with the <booleanInput/> component. These are gathered into a <booleanList>..


Attribute Example: unordered

The unordered attribute is specified in order to make comparisons between boolean lists without regard to order. The <booleanList> component is ordered by default.


Attribute Example: maxNumber

Use the maxNumber attribute to limit the number of boolean values rendered by the <booleanList>.


Property Example: numComponents

The numComponents property renders the number of boolean values stored in the list.