Classic Macros, are they like retail?

How bout one that is heal rank 2, but changes to smite rank 2 when you target an enemy?

#showtooltip
/cast [harm]Smite(Rank 2);Heal(Rank 2)