IF

The IF statement conditionally execute parts of the Template. The test, a formula of type BOOL, is evaluated. If it is TRUE, the THEN part is executed. If it is FALSE, the next part of the statement is executed.

The following is a definition of the statement.

IF The Test (* formula of type BOOL *) 
THEN 
   <Template scripting part with declarations>
ELIF The Test2 (* formula of type BOOL *) 
THEN 
   <Template scripting part with declarations>
ELSE 
   <Template scripting part with declarations>
FI 

If a condition is false, you can use ELSE or ELIF to specify the actions to perform. Use ELSE to indicate a single set of actions. Use ELIF when an alternate set of conditions is to be considered. Within the ELIF, there can be ELSE and ELIF statements if the condition is false. For more information on these statements, see