Is it possible to have a charded action with 3 inputs?

Basically the title. I am trying to create an action where both the triggers are held to bring up a menu, and being able to press one of the face buttons to select an action from that menu. i.e. LT + RT + B.
Just wondering is this is possible, and if it is, how would I do it?

Create 2 bools to store the state of the triggers (bLeftTriggerPressed and bRightTriggerPressed or something more generic unrelated to the button name, like bFirstModifierKeyPressed and bSecondModifierKeyPressed) and set them to true on pressed, and false on released.

When you press the B button you can check if these two values are true and perform a soecific action instead of (or in addition to) the regular one.

You could also check if these keys are pressed without the bools at runtime, but I wouldn’t recommend this because if you change the input mapping (for example from LT and RT to LB and RB) you will have to edit these checks