IF (search, ‘‘search text’‘) … (ELSE …) ENDIF
Execute a set of statements based on whether a condition is true, and optionally execute a second set if the condition is false.
Usage: if (search, ‘‘search text’‘)
statement
statement
…..
endif
or
if (search, ‘‘search text’‘)
statement
statement
…..
else
statement
statement
…..
endif
To reverse the search condition (to execute the statements after the ‘if’ if the text was not found), put an ‘!’ directly in front of the word ‘search’ as in
if (!search, ‘‘search text’‘)