Documentation
Getting Started
New Features
Component Guide
Programming
    Language Guide
    Language Ref.
       General Design
       Lexical Structure
       Expressions
       Objects
       Methods
       Classes
       heitml Tags
          ? Tag
          assign Tag
          defautoclose Tag
          break Tag
          callenv Tag
          dbdatabase Tag
          dbquery Tag
          dbupdate Tag
          def Tag
          defclass Tag
          defbody Tag
          defenv Tag
          defhtml Tag
          defwysiwyg Tag
          for Tag
          forin Tag
          forsep Tag
          if Tag
          elsif Tag
          else Tag
          include Tag
          includeonce Tag
          inherit Tag
          let Tag
          mail Tag
          return Tag
          shell Tag
          while Tag
          writefile Tag
          \ Tag
       heitml Functions
       Database Access
       Global Variables
       Form Fields
       Server Variables
       Sessions
       heitml Syntax
    Component Ref.
    Class Library
    User Components
    Tryout Form
    Tutorial
    heitml 1
User Guide
Registration
Frame
    

if elsif else Tag

Format: <if Expression> heitml [ <else> heitml ] </if>
Format:
<if Expression> heitml
<elsif Expression> heitml
...
<elsif Expression> heitml
[ <else> heitml ]
</if>

Purpose: Evaluates the Expression after the if tag. Its result must be of type Boolean. If the expression evaluates to true, the heitml code following the if tag is performed, otherwise the evaluation repeats for the expression of every elsif tag. If no elsif expression evaluates to true, and if the else tag has been specified, the heitml code following the else tag is performed.

Example:

heitml input:
 <if x == y>
   <DoThisProcedure>
   <DoThisOneToo>
 <else>
   <ShowErrorMessage>
 </if>

Note: The if, elsif, and else Tag is Case Sensitive, which means heitml will not recognize it if you use capital letters (e.g. <IF Expression>, <ELSIF Expression> or <ELSE>).


This page was dynamically generated by heitml
© 1996-2009 H.E.I. All Rights Reserved