Conditional Macro

Pins are your friend.