You can create macros such as;
And it will be executed as if it were Blizzard code.Code:/run Do( "if (UnitDebuff(\"party\", \"polymorph\")) then CastSpellByName(\"Cleanse\") end")
Eg; you can write an entire bot just by wrapping it with the Do() command (or DoFile)