hello again,

i was trying to make a personal bot of my own and i got a little lost.

on 187:TEXT:$($me $+ *):*: {
if ($2 == opme) { mode # +o $nick | halt }
if ($2 == deopme) { mode # -o $nick | halt }
if ($2 == +o) { mode # +o $3 | halt }
if ($2 == -o) { mode # -o $3 | halt }
if ($2 == voiceme) { mode # +v $nick | halt }
if ($2 == devoiceme) { mode # -v $nick | halt }
if ($2 == +v) { mode # +v $3 | halt }
if ($2 == -v) { mode # -v $3 | halt }
if ($2 == hopme) { mode # +h $nick | halt }
if ($2 == dehopme) { mode # -h $nick | halt }
if ($2 == +h) { mode # +h $3 | halt }
if ($2 == -h) { mode # -h $3 | halt }
[color:blue]if ($2 == kick) || ($level($3) == 187) { msg # $3 is a Protected User and i will not kick $3
kick # $3- | halt }[/color]
if ($2 == ban) { ban -k # $3- | halt }
if ($2 == unban) { ban -r # $3 | halt }
}

part highlighted is where i'm having trouble at, what i wanted to do is it to check if nick specified is in level 187 it won't kick the nick and do the msg # if not it'll kick nick specified anyway. can anyone help?