--- doc/docbase/instrument_scripts/nksp/01_nksp.html 2017/07/30 14:45:49 3336 +++ doc/docbase/instrument_scripts/nksp/01_nksp.html 2017/07/30 16:07:58 3337 @@ -1500,13 +1500,17 @@ use the preprocessor instead for such things. And like stated above, there are certain things which you can only achieve with the preprocessor.

+ +

Disable Messages

Since it is quite common to switch a script between a development version and a production version, you actually don't need to wrap all your message() calls into preprocessor statements like in the - previous example. There is actually a built-in preprocessor dedicated to - perform that task much more conveniently for you. So the previous example - can be simplified like this: + previous example just to disable messages. There is actually a built-in + preprocessor condition dedicated to perform that task much more conveniently for you. + To disable all messages in your script, simply add SET_CONDITION(NKSP_NO_MESSAGE) + i.e. at the very beginng of your script. + So the previous example can be simplified like this:

{ Enable debug mode, so show all debug messages. }