you guys mean $($+(%,thinga,%x),2)

btw just in case %thinga* vars arent always sequential like you may not necessarily have 1,2,3 in case some are unset before others, you should loop with $var
var %z = 1
while ($var(thinga*,%z)) {
if ($nick isin $($v1,2)) { ... }
inc %z
}