D dopeness Newcomer Joined May 5, 2009 Sythe Gold 0 Messages 5 Jan 16, 2010 #1 usuallly its like for(i=0; i >=this; i++) but i cant get it to work some 1 mind explaining how this works, thx
usuallly its like for(i=0; i >=this; i++) but i cant get it to work some 1 mind explaining how this works, thx
T The Pocked Man Member Joined Nov 14, 2009 Sythe Gold 0 Messages 29 Jan 19, 2010 #2 if you want the pascal (script language of SCAR) equivalent of this for(i=0; i >=this; i++) use something like this Code: var i:integer; begin i:=0; While i >=this begin Do Stuff; inc(i); //same as i++; end; end. (for i := 1 to number) this will iterate through the numbers whereas the While loop is conditional.
if you want the pascal (script language of SCAR) equivalent of this for(i=0; i >=this; i++) use something like this Code: var i:integer; begin i:=0; While i >=this begin Do Stuff; inc(i); //same as i++; end; end. (for i := 1 to number) this will iterate through the numbers whereas the While loop is conditional.