A variable is named after the fact that it can vary, or change. You were changing your variable before running the program, but you can assign the variable a new value in the middle of your program, too.
For example, let the first three sides of the square have a duration of 2. But then change the variable to be 1 so that the last side of the square is smaller. Continue changing the variable to make a square spiral! It will look something like this:
To change the value of a variable in the middle of the program, use the “set” variable block. Take a look at what some example code would look like: