Nice Lonk...

$a=(2<$ & 7>$ & $x mod 10=)*$a

This is the line I was hunting for when I was fooling with it... I knew
there had to be a way to do it without just setting $a=0.

$x=(1&$t) *(1.1*$a)+$a+$x

1.1 eh? I'm still trying to understand how this works... looking at it now