Wait,
are you sure that it is possible to set multiple modes, seperated by a space?
Like //mode # +s +i ... ? It didn't work for me, so it looks like all modes have to be in one token, like +s+i-m...
If that is correct, then using "if h isincs $2" is sufficient.
Greets