I would use an option frame with 2 option buttons. Option labels indicate the value. The chosen option is passed to the frame. The best benefit to this is that if you want to add other values later, you will only have to add options and not change your expression (calculation formula) because the chosen value is always passed to the frame. This is better than one checkbox, which can be checked or not (thus only providing 2 possible values) except where it has never been checked. In that case, it is neither and you would also have to deal with that.
BTW, the moment you want to pass a variable value to the expression, any solution will have to be handled in code.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.