Can I put for loops (or while loops) in a my string to send to a RE? Can the loop modify variables within it's OWN string , or do they have to be created separately?

example:

Code:
abc123 = format [.......
abc = createVehicle (...,[_pos select 0,y,x],[],CAN_COLLIDE);

for '_i' 1 to 10 do {
_x = (pos select 0);
_x = _x + _i; //for loop
set _pos[_x,0];
abc setPos _pos;

......];

call [abc123] my_RE;
I know the code it wrong, but is there a way to make this work?
I need the server executing the loop, not my client.

Pet