Qbasicnews.com

Full Version: step... what is it
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
what is step and how does it work?
http://qbasicnews.com/qboho/qckstep.shtml

any more specific questions?
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?
up that's what step does when you use it with FOR loops. It tells it how much to increment it each time.
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