HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I still don't understand...

09-24-2003, 10:54 PM#1
Eriond
I still don't understand the functions;

For each (Integer B) from 1 to 3, do (Actions)

and stuff like that. What does it mean? I've seen it used several times but I never got exactly what it did.. can anyone shed some light on the situation?
09-24-2003, 10:56 PM#2
Draco
For the amount of integers between numbers 1 and 3, it will do those actions that amount of times.
09-24-2003, 11:25 PM#3
Eriond
Oh, so it's just like a repeat function? What's intedger B for then? Is that like a repeat function within a repeat function?
09-24-2003, 11:38 PM#4
Otiluke
For each (place your variable number here) between 1-3 do (Place your action here) that many times.
09-24-2003, 11:38 PM#5
Trick
Integer B is the current value of the repeat. Example:

For Each Integer B from 1 to 3

This will produce 3 passes. The first pass the value of Integer B will be 1, the next pass it will be 2, and the final pass it will be 3.

Inside the loop, you can use the value Integer B to cause these values to be used during each pass.