Can you create a conditional statement in pre-sequence macro?

Hi,

I was wondering if you could somehow create a conditional statement before taking action in the macro,

i.e. if self is being targeted for a spell attack
cast this, otherwise do this.

nope you cant …

You can, if you know how to code AHK

Conditionals like the one the poster is asking about would be against the TOS

Basic conditionals like IF INDOORS or FORM or FLYING etc … are deemed ok …

Just my 2-cents …