xml:elseif - Elseif xml statement

<xml:elseif>

Elseif xml judgment statement

Introduce

After <xml:if> or <xml:elseif>, 
when the previous judgment fails, enter the current judgment.
test(required)
In front of the if or elseif judge was not established, then enter the judgment. 
Using Xpath to judgment the conditions, The result is established,
then run the code within the if block, The result is not established, not run.

Symbol
=:equal
!=:not equal
and:and
or:or
trim(optional)
Whether to retain the output value of the front and back blank characters

Property
false:yes(default)
true:no(Including the newline)

Example:

Elseif rule

In test, enter the Xpath expression, the expression return true, if block is executed, if the return is false, skip or enter the next statement soon (such as <xml:elseif> or <xml:else>).

Common judgement symbols

==: equal
!=: not equal
&&: and
||: or
>: greater than
>=: greater than or equal
<: less than
<=: less than or equal
This is a xml file

We transform it to model

(How to transform the xml model, please read: transform xml model)

In the template, we select this model to find the xml model

If the model group is selected, the xml tag need to specify relation

If the model is selected, the xml tag does not need to specify relation

About the usage of xml tag, please read: xml tag

Set the variable book

Result