This is a known quirk https://en.wikichip.org/wiki/mirc/variables#Special_behaviors_.26_quirks

The workaround is to preevaluate the first variable name as well

inc -eu $+ $iif(%d,$v1,10) % $+ flood_ $+ $chan $+ _ $+ $nick $+ _spam 1


#mircscripting @ irc.swiftirc.net == the best mIRC help channel