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.
expression or variable to evaluate
same as COND
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>
The value was not Test, 123 or BOB<BR> </SAIF>