that might barely fit into the damage formula - that field is long, but not unlimited.
If that is the longest example you will ever use, then you can check the if syntax in the stickied topic about how to use the damage formula (sorry, it's been too long since I used Ace, don't remember it at the moment).
However, if you consider longer conditions or checking for more than three or four states or so then I would suggest that you go to tsukihimes blog and use her script about conditional states and placeholder states - that would allow you to use as many conditions as you like.
well actually i can put together most of it i just cant seem to find how id check for the state. would it be a.has_state(0)? i think i came across it recently but i cant find it.
The general check to see if a state is present and if it is, add another one, is
if a.state?(x);a.add_state(y); end; damage formula here
If you didn't want to use Tsukihime's script, you could do the usual alternative of a snippet which you would then call with the custom name in the damage formula. That would enable you to have several checks.
EDIT
ninja'd