Scripting Fundamentals "FOR" "NEXT"

jeudi 23 juin 2016

G'day all, I'm making this the 1st of some Stickys I plan to make.

"FOR" needs a matching "NEXT"

Whenever you have a "for" you need to have a matching "next".
The for/next pair set the track scope for the statements in between. So either:

Code:

for 1
  set quantize cycle
next
for 1
  TrimEnd
next
for 1
  set quantize loop
next

Or more simply:
Code:

for 1
    set quantize cycle
    TrimEnd
    set quantize loop
next

Alternative below but it's simpler just to do everything inside one for/next.
Code:

for 1
    set quantize cycle
    for 1
        TrimEnd
          for 1
              set quantize loop
          next
    next
next

Hope this helps some people :)

2nd sticky will be on If / else / endif


Scripting Fundamentals "FOR" "NEXT"

0 commentaires:

Enregistrer un commentaire

 

Lorem

Ipsum

Dolor