docs.roxen.comBack to normal mode
DocsRoxen2.2Web Site Creator ManualIf Tags
Copyright © 2004, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com

<if match></if>

Provided by module: Tags: RXML 2 tags

Evaluates patterns. More information can be found in the If tags tutorial. Match is an Eval plugin.


Attributes

match="pattern"

Choose what pattern to test. The pattern could be any expression. Note!: The pattern content is treated as strings:


 <set variable='var.hepp' value='10' />

 <if match='var.hepp is 10'>
  true
 </if>
 <else>
  false
 </else>
false

This example shows how the plugin treats "var.hepp" and "10" as strings. Hence when evaluating a variable as part of the pattern, the entity associated with the variable should be used, i.e. &var.hepp; instead of var.hepp. A correct example would be:


<set variable='var.hepp' value='10' />

 <if match='&var.hepp; is 10'>
  true
 </if>
 <else>
  false
 </else>
true

Here, is treated as an entity and parsed correctly, letting the plugin test the contents of the entity.