Decision Table complex scenario

I have a variable stored in such way “a|b” and I have a list of codes, like c1, c2, c3…
The rule to make decision is:

  1. If only “a” or only “b” matches one of the code in the list (c1,c2,c3…), note down the c value and return True.
  2. Otherwise (both a and b matches or none of them), raise exception.

Can Flowable decision table do such thing?