Being kind of new to the interesting world of PB's macro-magic I came up with this rather strange solution:
Code: Select all
Macro _Quote
"
EndMacro
Macro Test(param=)
CompilerIf _Quote param _Quote <> " " ; Check if it's set
Debug "set to " + _Quote param _Quote
CompilerElse
Debug "not set"
CompilerEndIf
EndMacro
Test() ; Not set
Test(yeah) ; Set to "yeah"
Just a suggestion: Maybe even the Defined() functionality could be extended?! I'm thinking of something simple like Defined(param) (for this example)...