Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

&IF versus IF 1

Status
Not open for further replies.

carolynh

Programmer
Feb 13, 2004
44
US
What is the difference between using a preprocessor in front of the IF statment?
 
The IF statement is part of the regular 4GL and gets compiled into your program. The &IF preprocessor statement is evaluated at compile-time and the code it encloses only gets compiled into your program if it evaluates TRUE during the compile process. Have a look at the documentation on Preprocessors for a more comprehensive explanation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top