Oooooooooooooooh
Ok i got what your saying
First off, there is a way to do it using a spell like defend,turn on = such and such, turn off = such n such
But what you need is an easier way, to check for a spell, you need to use integer condition
level of ability "ability" of "unit" equal to 0
If the unit doesn't have the ability, it will return a 0 instead of a regular number
So you can check to see if it has the ability by whether it is 0 or not
It's funny, the Blizzard didn't add the normal check you would expect, instead they put in this roundabout way of doing it
You would need to have yet another dummy icon/ability for the second part
I would learn how to use the turn on / turn off for defend if I were you
Actually, I might even make a trigger system for both ways so you can see it yourself, but I can't do it now I gotta go to bed soon
P.S. Hang in there, I went through exactly the same thing your going through now, it's a part of learning the GUI functions