Use of ifdef homeyscripts

In my arduino projects is use #IFDEF to set debug actions. Now I know this is different from homeyscript, since Arduino uses a compiler, and homey not.
But I am looking for something similar to e.g,
#define DEBUG

#ifdef DEBUG
#DEBUG_PRINT(x) log(“Welcome to debugger”,x)
#else
#DEBUG_PRINT(x) log(“nothing to debug”)
#endif
This of course does not work, since #IFDEF is a compiler instruction, but is there an alternative

There is no DEBUG (or equivalent) in HomeyScript anyway.

You define a variable at the beginning of your code. And where applicable you insert some code like:
If debug== TRUE then log(“debug info”);