dim505 Posted May 25, 2013 Share Posted May 25, 2013 can anyone explain to be in cave man terms what are loop statements do saw it in a book and ive been tryin thr past couple of days to figure out what does it do and whats its syntax means Link to comment Share on other sites More sharing options...
Zapdude Posted May 26, 2013 Share Posted May 26, 2013 FOR %A IN (list) DO command [ parameters ]The above basic loop syntax provides the means of iteration. iteration stand for "Do this for a specified amount of times".command along with its parameters declares "what to do".list is an array of elements%A is substituded with an array elementso basically all it says is : For every element in the array (which is substituded by %A) DO what command saysFOR %A IN (1 2 3) DO ECHO Now using %A from listoutput:Now using 1 from listNow using 2 from listNow using 3 from list Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.