Index: openacs-4/packages/acs-templating/www/doc/tagref/if.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/tagref/if.html,v diff -u -N -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/doc/tagref/if.html 13 Mar 2001 22:59:27 -0000 1.1 +++ openacs-4/packages/acs-templating/www/doc/tagref/if.html 14 Jan 2003 01:54:55 -0000 1.2 @@ -142,6 +142,22 @@ <td bgcolor=#0000ff> </if> +
  • The elseif tag may be used following an if block +to specify an alternate conditional template section. +

    + +
    +  <if @datasource.variable@ eq "blue">
    +    <td bgcolor=#0000ff>
    +  </if>
    +  <elseif @datasource.variable@ eq "red">
    +    <td bgcolor=red>
    +  </elseif>
    +  <else>
    +    <td bgcolor=#ffffff>
    +  </else>
    + +
  • The else tag may be used following an if block to specify an alternate template section when a condition is not true: