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

Defined()

This is a rexx function provided by PPWIZARD. This routine (like all PPWIZARD extensions) can be used with any operating system supported 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 variable.

EXAMPLE

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


[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)
Thursday January 17 2002 at 6:27pm