scon evaluates %i, so the inc command looks like "inc 0 1" ... use { inc -s % $+ i }