Code:
menu status {
  User Modes
  .$iif($regex($usermode,/(i)/),$style(1)) Invisible « i »:{ mode $me $iif($regex($usermode,/(i)/),-i,+i) }
}


The above should work. What I did was replaced your method with my own. Basically I'm comparing a string using regular expressions (/help Regular Expressions), depending on the result the event is taken. This is similar to the one you had but using regular expressions,