[lammps-users] variable

Hi all,

In the script listed below, j is a new variable that I want to create in the loop.The value of j depends on the loop variable i. But I get the following error " Substitution for illegal variable".
How to fix this error?

These lines print out what you'd expect. I don't
see the problem.

label myloop
variable i loop 10
variable j equal v_i*100
print "I,J $i $j"
variable j delete
next i
jump in.bug myloop

Steve