Help with Macro priority for Death > Mind Blast > Mind Flay

Am trying to make a macro where if I have death up it uses that, then uses mind blast and then uses mind flay as a filler if both aren’t up, is this possible?

WoW macros don’t have any special cooldown conditionals, and GSE is an addon that just makes longer and complex macros possible.

In this case, you could have a 3 block macro, something like this:

1: /cast [nochanneling] Shadow Word: Death
2: /cast [nochanneling] Mind Blast
3: /cast [nochanneling] Mind Flay

It would be a shit macro with way to much Mind Flay, and it would just repeat through those three options however fast you push the button.