Hi, Max:
I’m not completely sure I understand what you are doing, but instead of “yes” or “no” in your constraint, have you tried “is checked” or “isn’t checked”?
Also, are you trying to count how many times a checkbox is checked? Maybe this link would help.