Adding an If Statement
The If statement executes a block of statements based on the results of a previous statement. The results are categorized by a return code. The If statement checks the value of the return code and executes the block if the statement is true.
You must use the Eif statement (endif) with the If statement. If the conditions of the If statement are not satisfied, use an Else statement to designate the execution of alternate instructions.