Are you able to use variables in a for loop?

Are you able to use variables in a for loop?
image

Also, how am I supposed to memorize how to do this for loop format?
I’m stressing over the fact that I don’t think I’ll be able to memorize it.

2 Likes

You’ll get down the arguments eventually with typing it over and over. Don’t feel bad if you need to look at the DevHub.

2 Likes

Variables are just names that carry values, meaning that anywhere you type that name, the script will think it’s the value you are referring to. In this for loop, the variables represent numbers so it will work.

2 Likes

Thanks, I got confused on what the third part of the for loop was.
I’m just now learning this aha :laughing:

2 Likes

You also might want to indent in the for statement