same tweak is sneaky in my code too, where:
$a=(2<$a & 7>$ ...

if currentvalue is more than 2 and currentval PLUS any reminder values is less than 7...
_________________________
!

download KiXnet