Cycle in increments > 1

 

Is there a more elegant way of running a cycle loop in increments greater than one:

i = 0;
While(i < 100)
{
.
....code
.
i = i + 3;
}

Is there a format using the 'For' function?

thanks

 
  1. For and while are different versions of the same thing
    i = 0;
    while(i < 100){
       ....code
       i = i + 3;
    }
    for(i = 0; i < 100; i+=3){
       ....code
    }


  2. Play video
    Please edit your post.
    For large amounts of code, attach it.
 

OK thanks for the format in the 'For' statement - couldn't finsd it in documentation.

your point 2. - i did use SRC button that;s why text is in the SRC box - or am i missing something?

 
sd59: your point 2. - i did use SRC button that;s why text is in the SRC box - or am i missing something?
I assumed because While wasn't highlighted in blue, sorry. It's while not While.
Reason: