Tuesday October 29, 2024

       
      SteelArrow Basics
      SteelArrow Tags
  SteelArrow Functions
  SteelArrow Objects
  Advanced Topics
  WAS Overview
   
   
       
      Overview
  Code Samples
  Site Search
   
   
   


Get SteelArrow!     
  <SAIF>    
 
 
 
Return to Tag List
 
The IF tag is used to control script execution (or program flow). IF blocks may or may not contain ELSE and ELSEIF blocks.

The NOCASE keyword may be used for case insensitive string compares.

 
Attributes:
CONDexpression or variable to evaluate
CONDITIONsame as COND
NOCASEflag to denote case insensitive compare

 
The following is an example of IF;
 
<SASET NAME=var VALUE="Testing 123">
<SAIF COND=var .eq. "Test">
   The value of var is Test<BR>
<SAELSEIF COND=var .eq. 123>
   The value of var is 123<BR>
<SAELSEIF COND=var .eq. "BOB" NOCASE>
   The value of var is BOB<BR>
<SAELSE>
   The value was not Test, 123 or BOB<BR>
</SAIF>





Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy