Skip to content

Tag Definition: docElif

Generated by rlextra version 4.4.3.1

Attributes

Name

Required?

Default_Value

Values

cond

required

None

Can contain
EMPTY

Purpose

This lets you include the equivalent of an elif 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>
    <docElif cond="i==4"/>
        <para>This is the Elif</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> ➔ <docIf> ➔ <docElif>