wtf wat language u run on??
it might be a java thing, but i was coding it as i would in c.a do while loop will always run through once, and then will loop if the conditional is true.
Yeah it's exactly what a for loop would do then. for( int i = 0; i<5; i++)So it declares variable, some condition for the variable to meet, then you affect the variable. I know do-while exists in java and it seems pointless to have both a for loop and the do-while loop.
a for loop is not guaranteed to run at least once
What? I guess if you screw up setting up the for loop it won't run. If you initialize the variable in the for loop wouldn't it be guaranteed to run?
not necessarilyin some cases you may have to code for at least one guaranteed run
Could you show me how that would happen? It's actually confusing me. I'm not the best at coding but I think I have a pretty good understanding of the basics so far, sorry if this questioning is annoying.
for(%i = getRandom(0, 5); %i < 3; %i++){ echo(%i);}
torquescript because i'm too focused on it to think of C++ or JavaCode: [Select]for(%i = getRandom(0, 5); %i < 3; %i++){ echo(%i);}i could be four or five, and that's certainly not less than three so it wouldn't run