Greetings
If am using a while loop to cycle through all nicknames in a channel how would i do it if i want to check if a variable applies to a certain nicks? I am currently using this but its not working.

if $($+(%,varcheck,.,$1($nick,%i)),2)

Thanks