Tuesday September 19, 2017

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


Get SteelArrow!     
  <SACASE/>    
 
 
 
Return to Tag List
 
The CASE tag is used in conjunction with a SWITCH block. This tag denotes a given possible value. Case statements are evaluated at run-time, and do not need to be static values. The first case to match a given expression will result in that code being executed.
 
Attributes:
VALUEvariable or expression to compare against

 
The following is an example of a CASE statement;
 
<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