Friday June 21, 2024

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

Get SteelArrow!     
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.
VALUEvariable or expression to compare against

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

Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy