Just to extend on Iori's post, you need to have either else ona new line, or use a | between the closing brace and the else. Example:

Code:
/test {
  if (*a* iswm $1-) {
    /echo -a There is an a!
  }
  else {
    /echo -a There is no a!
  }
}


Code:
/test {
  if (*a* iswm $1-) {
    /echo -a There is an a!
  } [color:red]|[/color] else {
    /echo -a There is no a!
  }
}


Same goes for else if >:D


-KingTomato