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

   

<catch>
<cond>
<for>
<throw>

<cond></cond>

Provided by module: Tags: RXML tags

This tag makes a boolean test on a specified list of cases. This tag is almost eqvivalent to the <if>/<else> combination. The main difference is that the <default> tag may be put whereever you want it within the <cond> tag. This will of course affect the order the content is parsed. The <case> tag is required.

Performance note: In the current implementation, this tag does not get optimized very well when RXML is compiled. It is recommended that <if> ... <elseif> sequences are used instead.


<case></case>

Provided by module: Tags: RXML tags

This tag takes the argument that is to be tested and if it's true, it's content is executed before exiting the <cond>. If the argument is false the content is skipped and the next <case> tag is parsed.


Attributes

<cond> <case variable='form.action = edit'> some database edit code </case> <case variable='form.action = delete'> some database delete code </case> <default> view something from the database </default> </cond>

<default></default>

Provided by module: Tags: RXML tags

The <default> tag is eqvivalent to the <else> tag in an <if> statement. The difference between the two is that the <default> may be put anywhere in the <cond> statement. This affects the parseorder of the statement. If the <default> tag is put first in the statement it will allways be executed, then the next <case> tag will be executed and perhaps add to the result the <default> performed.