Skip to content

allof

Type

Block Element

Permitted child elements:

Supported Attributes

None

Further information on the syntax

Description

An allof element combines its child elements using a logical AND operation as part of a decision: The result is true only if all child elements evaluate to true.

Code Examples

Code Example
<textbox>
  <parameter identifier="x">
      <range step="1">
          <value>5</value>
          <value>6</value>
      </range>
  </parameter>
  <decision>
    <case>
      <allof>
        <condition left="x % 2" operator="equal" right="0"/>
        <condition left="x % 3" operator="equal" right="0"/>
      </allof>
      <p>The result is: FizzBuzz</p>
    </case>
    <default>
      <p>The result is: <calc>x</calc></p>
    </default>
  </decision>
</textbox>