Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

 

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’‘)

 

Next Command

 

 

  • No labels