Variable in loop

Hi every one!
Can we have variables in loop such as matlab ?

I mean is,for example i=1:n and j=1:m.Can LAMMPS command cover every 15 positions by loop?

So thanks;

Nili

The syntax is not exactly the same, but you have a “loop” option for the variable command:
http://lammps.sandia.gov/doc/variable.html

In addition, you can also run individual LAMMPS commands from Python, within which you can use yet more kinds of loops.

Giacomo