How about:
on *:TEXT:Am I an op?:#: {
var %c = $chan, %n = $nick, %m = $chr(44) $+ %n $+ $chr(44)
msg %c $iif(%n isop %c,Yes $+ %m you are an op! =D,$iif(%n ishop %c,No $+ %m you are a half op! :O,$iif(%n isvoice %c,No $+ %m you are voiced =/,%n you are not anything! :p)))
}
Didn't test, sorry, not sure if it's right.