docs.roxen.com
main | demo | docs
download | community | pike
© 2000 Roxen Internet Software
Suggestions, Comments or Complaints
manuals@roxen.com

DocsRoxen2.0Web Site Creator ManualFlow tags
   

  • <catch>
  • <cond>
  • <for>
  • <throw>
  • <cond></cond>

    This tag is almost eqvivalent to the <if>/<else> tag combination. The main diffirence 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.

    <default></default>

    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.

    <set variable="var.foo" value="17"/>
    <cond>
      <default>var.foo<set variable="var.foo" expr="var.foo+2"/></default>
      <case true>var.foo<set variable="var.foo" expr="var.foo+1"/></case>
    </cond>
    var.foo
    

    <set variable="var.foo" value="17"/>
    <cond>
      <case false>var.foo<set variable="var.foo" expr="var.foo+1"/></case>
      <default>var.foo<set variable="var.foo" expr="var.foo+2"/></default>
    </cond>
    var.foo
    

    <case></case>

    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.

    <set variable='var.foo' value='17'/>
    <cond>
      <case true>var.foo<set variable='var.foo' expr='var.foo+1'/></case>
      <default>var.foo<set variable='var.foo' expr='var.foo+2'/></default>
    </cond>
    var.foo