PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: #undef[Next]: #Unknown Commands
\ -> Commands -> #Warning


A #Warning command is used to inform the user of an unusual situation. You would probably have extracted information (maybe from an environment variable) and found that all is not right. This command allows you to warn the user but continue processing (you will get a return code of 1).

The #Error command is similar but halts processing.


[WhiteSpace]#Warning  [']WarningId[']  [']WarningMessage[']

The "WarningId" parameter specifies a warning ID which can be used to help identify message (for example if you wished to use the Warnings option). You can supply an empty ID in case no ID is used. An ID can be as short or long as you wish.

The "WarningMessage" parameter specifies the text of the warning to be displayed.


#if GetEnv('FRED') <> 1 & GetEnv('FRED') <> 2
    #Warning ^IV00^ "Invalid value for variable 'FRED', processing will continue"

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

[Top][Contents][Search][Prev]: #undef[Next]: #Unknown Commands

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