PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: DebugOn()[Next]: DieIfIoErrorOccurred()
\ -> Rexx -> Inbuilt PPWIZARD Functions -> Defined()

Defined()

This is an inbuilt function function provided by PPWIZARD.

This function can be called (probably in a #if command) to determine if a variable has been defined with either #define or #evaluate. The return code is either 'N' or 'Y'.

You would use this routine in a #if command rather than a #ifdef or #ifndef if you want to do something which involves testing the existance of more than one variable.

The parameters are as follows:

  1. Define Name
    This is the name of the macro.

  2. Ignore Flag
    Normally if you pass the name of an invalid macro then the build will abort with an error, if you pass "I" then this routine will return "N" (the symbol doesn't exist).

EXAMPLE

#ifdef Var1
     ...
#endif

#if  Defined('Var1') = 'Y' | Defined('Var2') = 'Y'
     ...
#endif


email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: DebugOn()[Next]: DieIfIoErrorOccurred()


PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Saturday May 28 2022 at 2:55pm