I requested a different feature, the ability to set the value of a variable when the button is pressed.
I recommend you to open a new thread with your request
Apologies, as I misunderstood.
Anyway, what you'd like to can already be done if you call an action block when the buttons are pressed. The action block simply sets an output variable to the input variable. You then pass the value of the variable as the input to the action block, and the variable you want set as the output. This also allows you to determine which button was pressed, as you can use different values for each button.