Thursday April 18, 2024

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


Get SteelArrow!     
  <SASWITCH>    
 
 
 
Return to Tag List
 
The SWITCH tag is used in conjunction with CASE statements. This tag evaluates an expression or value for comparison against the possible case values.
 
Attributes:
VALUEvariable or expression to evaluate
NOCASEflag to denote case insensitive compare

 
The following is an example of a SWITCH block;
 
<SASET NAME=test VALUE="abc">
<SASWITCH VALUE=test>
   <SACASE VALUE="abc">
      The value is abc!<BR>
   <SABREAK>
   <SACASE VALUE="d" & "ef">
      The value is def!<BR>
   <SACASE VALUE="ghi">
      The value is def OR ghi!<BR>
   <SABREAK>
   <SADEFAULT>
      Did not match any CASE values<BR>
   <SABREAK>
</SASWITCH>





Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy