ERROR: Illegal variable command: expected 3 arguments but found 4 (src/variable.cpp:447)

This kind of problem was reported and answered very recently: Why does my LAMMPS script fail with 'Illegal variable command