Skip to content

Tag Definition: docElse

Generated by rlextra version 4.3.0a1

Attributes

Name

Required?

Default_Value

Values

Can contain
EMPTY

Purpose

This lets you include the equivalent of an else condition with just a template.

See the relevant docs here docs

Example usage

<story>
    <docAssign var="i" expr="4"/>
    <docIf cond="i==5">
        <para>This is the IF</para>
        <docElse/>
        <para>This is the Else</para>
    </docIf>
</story>

Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.

Example of nesting path from the parent tags to the current tag

<document> ➔ <story> ➔ <docElse>