Single quotes in concatenate yield error

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:

  1. no single quotes โ†’ PASS
    SWITCH([_THIS],
    โ€œOustandingโ€, โ€œโ€,
    โ€œCompletedโ€, โ€œโ€,
    โ€œWaivedโ€, โ€œaโ€ & โ€œbโ€,
    โ€œNot Applicableโ€, โ€œโ€,
    โ€œAlready Haveโ€, โ€œโ€,
    โ€œโ€
    )

  2. single quotes in string but no concatenation โ†’ PASS
    SWITCH([_THIS],
    โ€œOustandingโ€, โ€œโ€,
    โ€œCompletedโ€, โ€œโ€,
    โ€œWaivedโ€, โ€œaโ€™'bโ€,
    โ€œNot Applicableโ€, โ€œโ€,
    โ€œAlready Haveโ€, โ€œโ€,
    โ€œโ€
    )

  3. using CONCATENATE instead of & yeilds the same error โ†’ FAIL

0 1 601
1 REPLY 1

Steve
Platinum 4
Platinum 4

Related:

Top Labels in this Space