docs.roxen.comView this page in a printer friendly mode
DocsRoxenWebServer 5.2Web Developer ManualIf Tags
Copyright © 2015, 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 kerberos-auth>
<if language>
<if match>
<if Match>
<if module>
<if pragma>
<if prestate>
<if referrer>
<if scope>
<if sizeof>
<if supports>
<if time>
<if true>
<if type-from-data>
<if type-from-filename>
<if user>
<if variable>
<if Variable>
<if variable-exists>
<then>
<true>

<if variable-exists></if>

Provided by module: Tags: RXML tags

Does the given variable exist? I.e. is it bound to any value, be it null or something else?

The difference from the <if variable> plugin is that this one returns true for variables with a null value (typically produced by the <emit source="sql"> for columns containing an SQL NULL value).

Compatibility note: When the compatibility level is 4.5 or lower, <emit source="sql"> assigns the undefined value for SQL NULLs instead of a proper null value. This test is therefore false for such values too unless the compatibility level is higher than 4.5.


Attributes

variable="name"

Name of the variable to test.