|
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:
VALUE | variable or expression to evaluate |
NOCASE | flag 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>
|