Umm, well is that inside an ON event? If so, can you paste enough code so that someone can actually test the code and try to reproduce it?

ON *:INPUT:*:{
.echo -a $iif($event != text,y,n)
}

That works perfectly for me.