e.g.
Code: Select all
[H: string = "-" ]
[H: fail = try( "[ value = eval( string ) ]" )]
Alternatively, something similar that returns an empty string instead of generating an error message, otherwise the result of the code as evalMacro (or execMacro). Or, an optional argument could change different behaviours (new variable scope, what is returned, etc.)
Reason: Some functions are quite finnicky about the arguments passed to it, and there are times when I don't really care what the error is, I just want to know if the code can execute without errors e.g. comparison of values (of different types), and the [wfunc]eval[/wfunc] function in particular.