Allow BadVal to check multiple inputs or IFERROR
Right now BadVal can only check one variable or Expression. So if I am evaluating an expression with say 10 inputs, and I want the expression to output NoOutput() if any one of the 10 inputs are BadVal, then I have 2 options right now.
1) copy the whole expression into the BadVal funtion and do "if badval(expression) then NoOutput() Else expression".
2) Do "if (BadVal(input1) or BadVal(input2) or ...) then NoOutput() else expression".
Ideally you would have a IFERROR function like in Excel. So you would just type "IFERROR(expression,NoOutput())
Alternatively you could have BadVal allow multuple inputes. So "If BadVal(input1,input2,input2,...) then NoOutput() else expression"
I'm sure one of these options is more resource efficient then the currently available options.
+1 for IFERROR function
Mike Horrocks commented
Rather than the listed Option 1 (copy the whole expression...) it would be possible to execute that expression and instead of outputting the result use it as a variable where you could then do:
If BadVal(VariableName) Then NoOutput() Else VariableName
This would prevent the expression being executed twice.
+1 for IFERROR function as it would greatly simplify handling bad data and expressions.