help with an IF in an alias

Posted by Perrin on Tue 05 Feb 2008 03:56 PM — 2 posts, 13,971 views.

USA #0

<aliases>
  <alias
   match="^(line|rush|aid|divine|light|fly|uwb|aura|armor|mystic|harden|invis|stone|absorb|percept|circle|blur|prayer|frenzy|godly|bless|haste|evil|giant|avoid|true|shield|rev|wraith|all) off$"
   enabled="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>if %1 = all then
  enabletriggergroup "spell1", 0
  note "all spells turned off"
    else
  enabletrigger "%11", 0
  note "%11 turned off"
end if
</send>
  </alias>
  <alias
   match="^(line|rush|aid|divine|light|fly|uwb|aura|armor|mystic|harden|invis|stone|absorb|percept|circle|blur|prayer|frenzy|godly|bless|haste|evil|giant|avoid|true|shield|rev|wraith|all) on$"
   enabled="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>if %1 = all then
     enabletriggergroup "spell1", 1
     note "all spells turned on"
   else
     enabletrigger "%11", 1
     note "%11 turned on"
end if</send>
  </alias>
</aliases>

------------------------------------------------------------
not sure why but the first part of my if fires on any word
containing an A or L would really appreciate any help
Australia Forum Administrator #1
See: http://mushclient.com/faq point 32.