03-25-2005, 03:42 AM
what is step and how does it work?
url=http://www.random-seed.net][/url]
step... what is it
|
03-25-2005, 03:56 AM
03-25-2005, 05:31 AM
i think i get it.. like, if i want to make a for next loop, but i dont want to to count from 1 to 10 by ones, i want it to count in 2's, i would use step.. so i could go like 2,4,6,8,10... is that correct?
url=http://www.random-seed.net][/url]
03-25-2005, 06:14 AM
up that's what step does when you use it with FOR loops. It tells it how much to increment it each time.
03-25-2005, 06:56 PM
it basically ADD's the value to the "from"
STEP 2 so step 2 doesnt "count by" it "adds" count from 1 to 10 would output this 1 3 5 7 9 if you wanted to "count by 2's" you would make it "0 to 10" output 0 2 4 6 8 10
Oh dear,' says God, 'I hadn't thought of that,' and promptly vanished in a puff of logic."
My waste of space |
« Next Oldest | Next Newest »
|