I'm hoping to get some input from some of the macro wizards that hang out here regarding conditional targeting. Here is what I'm looking to do.

I need my casters to do a check on a few boss fights, mainly Curator and Laj at this point. What I want the macro to do is something like:

/target [Astral Spark = if its alive][Curator = If no Astral Sparks are alive]

Is this possible, and if so how would I write it correctly? I have read a few macro guides but I'm just not able to find the information I need (or not able to understand it, lol, which is far more likely).

Any help would be greatly appreciated.