|
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:
VALUE | variable 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>
|
|
|
|