The IF tag is used to control script execution (or program flow). IF
blocks may or may not contain ELSE and ELSEIF blocks.
The NOCASE keyword may be used for case insensitive string compares.
Attributes:
COND
expression or variable to evaluate
CONDITION
same as COND
NOCASE
flag to denote case insensitive compare
The following is an example of IF;
<SASET NAME=var VALUE="Testing 123"> <SAIF COND=var .eq. "Test">
The value of var is Test<BR>
<SAELSEIF COND=var .eq. 123>
The value of var is 123<BR>
<SAELSEIF COND=var .eq. "BOB" NOCASE>
The value of var is BOB<BR>
<SAELSE>
The value was not Test, 123 or BOB<BR> </SAIF>