All of that was removed from the game a while back. The UI no longer allows logical conditionals and checks in macros.

There used to be some really bad azz ui mods back in the day that would buff, heal, fight and basicaly do it all on a single button smash, to the point it would swap spells and ranks etc so you didnt over kill anything.