I tried searching for this.. but no luck so I wondering if I could get some help... What I am looking for is a macro that will do this...

Divine Intervention Logic
------------------------------------
Cast (DI) on target1 if alive
else
Cast (DI) on target2 if alive
else
Cast (DI) on target3 if alive
else
Cast (DI) on target4 if alive
------------------------------------