<if defined></if>
Provided by module: Tags: RXML tags
Tests if a certain RXML define is defined by use of the <define> tag, and in that case tests its
value. This is an Eval plugin.
Attributes
- defined="define"
-
Choose what define to test.
The define should be provided as
type�name-of-define, i.e. the type
and the name separated by a NUL (ASCII 0) character. Currently there
are two alternatives:
-
tag�name-of-define
-
if�name-of-define
<define tag="hello-world">Hello world</define>
<define container="say-hello">Hello, <contents/></define>
<define if="person">Matt</define>
<if defined="tag�hello-world">
<div><hello-world/>!!</div>
</if>
<if defined="tag�say-hello">
<div><say-hello>Matt</say-hello></div>
</if>
<if defined="if�person">
<div>
<if person="Matt">Yes, it's Matt!</if>
<else>No Matt</else>
</div>
</if>
<if defined="tag�non-defined-thing"><non-defined-thing/></if>
<else><div><non-defined-thing/> is not defined</div></else> |
Hello world!!
Hello, Matt
Yes, it's Matt!
<non-defined-thing/> is not defined |