Macro for IF Garrote THEN rupture?

Looking to slim down my keybinds, is there a way to macro if a target already has garrote on them then cast rupture instead?

No macros can’t check enemy debuffs.

Bummer, thanks.