docs.roxen.comView this page in a printer friendly mode
DocsRoxenWebServer 3.4Web Developer ManualIf Tags
Copyright © 2006, Roxen Internet Software
Suggestions, comments & compliments
manuals@roxen.com
 DEMO  DOCS  PIKE
 COMMUNITY  DOWNLOAD
www.roxen.com

   

<else>
<elseif>
<false>
<if>
<if accept>
<if client>
<if clientvar>
<if config>
<if cookie>
<if date>
<if defined>
<if domain>
<if exists>
<if expr>
<if false>
<if group>
<if internal-exists>
<if ip>
<if language>
<if match>
<if Match>
<if module>
<if pragma>
<if prestate>
<if referrer>
<if sizeof>
<if supports>
<if time>
<if true>
<if user>
<if variable>
<if Variable>
<then>
<true>

<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.