Using Stream Deck Button Press as a Condition in an IF Statement

I'm trying to use a Stream Deck button press to satisfy an if condition -- and there doesn't seem to be an option to check for a USB device key condition. The Stream Deck is available as a trigger, but not as a condition.

Please post your macro and explain what you're trying to achieve, as there may be a more elegant solution than the one I'm about to suggest:

There is no USB Device Key condition, but a dedicated macro can set a variable depending on whether the SD button is currently pressed, like so:

Screenshot

This variable can then be referenced by an If/Else action in another macro.

Hi! Thank you very much! This would solve the issue I have!

You may find this interesting: