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:

 <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 the web application development tool RADpage of H.E.I.
© 1996-2017 H.E.I. All Rights Reserved.



Homepage
Intro/Features
Component Guide
Programming
  Language Guide
  Language Ref.
    General Design
    Lexical Structure
    Expressions
    Objects
    Methods
    Classes
    heitml Tags
      ? Tag
      assign Tag
      break Tag
      callenv Tag
      dbdatabase Tag
      dbquery Tag
      dbupdate Tag
      def Tag
      defautoclose Tag
      defbody Tag
      defclass Tag
      defcontpara Tag
      defenv Tag
      defhtml Tag
      definpara Tag
      defpara Tag
      defremovecdata Tag
      deftranspara 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
    Advanced Functions
    Database Access
    Global Variables
    Form Fields
    Server Variables
    Sessions
    heitml Syntax
  Component Ref.
  Class Library
  User Components
  Tryout Form
  Tutorial
  New Features
  heitml 1
User Guide
FAQ
Mailinglist
Discussion Group
Services
Pricing/Register
Download
Frame
 
Contact
 
 
 
Search: