How can I use the variable %i%