otherwise

Purpose

Conditional markup that is only rendered if none of the when elements in the containing select element has been matched.

Contained by

Example

The welcome.mlyt layout can be found in the MCS/repository/xml-repository directory.

<?xml version="1.0" encoding="UTF-8"?>
<canvas layoutName="/welcome.mlyt" pageTitle="select">
  <pane name="background">
    <select precept="matchevery">
      <when expr="device:policy-value('supports.client.framework')='true'">
        <p>This device supports the Client Framework 1.</p>
      </when>
      <otherwise>
        <p>This device does not support the Client Framework 1.</p>
      </otherwise>
    </select>
  </pane>
</canvas>

Related topics