Hybrid Mouseover Macro?

Hello, I’m no stranger to mouseover macros, but I’m not sure of the correct syntax to do what I’d like here:

I’d like to be able to cast Paladin Cleanse on my friendly mouseover targets but when I have no target moused-over or selected, cast Consecration instead. I feel like this should be simple to do, but aren’t getting it right.

Can simplify if for your needs just remove everything after the first ; and put Consecration there.

Cool, thank you, I appreciate it.

EDIT: So I tried the following

/cast [@mouseover,help,nodead] Cleanse Toxins; Consecration

And it doesn’t work as expected. It’ll cast Cleanse if I’ve selected the target’s portrait but otherwise casts Consecrate. I use help/harm mouseover macros for healing/DPS on this character, so I know how they normally work. The Paladin, however, simply is refusing to cast the desired spell on mouseover.

Second edit: Weirdly, after further testing the macro sorta works. It refuses to cast when I’m mousing over myself (it requires me to actually select myself) but it’ll cast on anyone else with a mouseover like intended.

I can live with that.