There are 2 problems:
A) the fact that this is an error, I donโt think it should be an error
B) the error message is wrong it talks about parens when all the parens are correct
My test case (note the single quotes next to a and b in the string):
SWITCH([_THIS],
โOustandingโ, โโ,
โCompletedโ, โโ,
โWaivedโ, โaโโ & โ'bโ,
โNot Applicableโ, โโ,
โAlready Haveโ, โโ,
โโ
)
meets this error:
Expression โSWITCH([_THIS], โOustandingโ, โโ, โCompletedโ, โโ, โWaivedโ, "aโ" & โ'bโ, โNot Applicableโ, โโ, โAlready Haveโ, โโ, โโ )โ could not be parsed due to exception: Number of opened and closed parentheses does not match.
I tried these variations:
no single quotes โ PASS
SWITCH([_THIS],
โOustandingโ, โโ,
โCompletedโ, โโ,
โWaivedโ, โaโ & โbโ,
โNot Applicableโ, โโ,
โAlready Haveโ, โโ,
โโ
)
single quotes in string but no concatenation โ PASS
SWITCH([_THIS],
โOustandingโ, โโ,
โCompletedโ, โโ,
โWaivedโ, โaโ'bโ,
โNot Applicableโ, โโ,
โAlready Haveโ, โโ,
โโ
)
using CONCATENATE instead of & yeilds the same error โ FAIL
Related:
User | Count |
---|---|
17 | |
14 | |
8 | |
7 | |
4 |