Keybinding macro for elemental

I hit a bit of a snag with a macro,
/cast [nomod:,@mouseover,harm,nodead] Flame Shock
/cast [mod:shift] Icefury

Basically I want it to cast flameshock on mouseover, if there is no mouseover target then cast flame shock on primary target.
Second, I want it to cast Icefury if I hit the shift key. I can get the first part to work but the shift modifier does not. Anyone have a solution?

Try:

/cast [nomod][@mouseover.exists.nodead.harm][@target.exists.nodead.harm] Flame Shock
/cast [mod:shift][@mouseover.exists.nodead.harm][@target.exists.nodead.harm] Icefury

Thanks for the reply, my issue with your suggestion is I’m not wanting to mouseover icefury. I just want to cast it on my target.

Try

/cast [nomod][@mouseover.exists.nodead.harm][@target.exists.nodead.harm] Flame Shock
/cast [mod:shift][@target.exists.nodead.harm] Icefury

I am not in game right now so I can’t test this out, but if this doesn’t work for Icefury, you may need to make a separate macro for it.

I tried the macro, the mouseover flameshock part doesn’t work.