[Script Info] Title: [Events] Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text Dialogue: 0,0:00:05.40,0:00:10.31,Default,,0000,0000,0000,,When you use a repeat block to loop your code,\Nhow does the computer know when it's repeated Dialogue: 0,0:00:10.31,0:00:15.86,Default,,0000,0000,0000,,enough times? The repeat block is actually\Nhiding a more sophisticated piece of code Dialogue: 0,0:00:15.86,0:00:22.09,Default,,0000,0000,0000,,called a for loop which counts from a starting\Nvalue up to an ending value by a specific Dialogue: 0,0:00:22.09,0:00:30.58,Default,,0000,0000,0000,,increment. For example, a repeat three block\Ncounts from 1 to 3 by 1. Every time it counts, Dialogue: 0,0:00:30.58,0:00:35.75,Default,,0000,0000,0000,,it runs the code inside the loop. The for\Nloop knows how many times it has run by using Dialogue: 0,0:00:35.75,0:00:40.13,Default,,0000,0000,0000,,a counter variable which is set to the starting\Nvalue at the beginning of the loop and has Dialogue: 0,0:00:40.13,0:00:44.31,Default,,0000,0000,0000,,the increment added to it each time the loop\Nis run. As soon as the counter variable is Dialogue: 0,0:00:44.31,0:00:51.36,Default,,0000,0000,0000,,greater than the ending value, the loop stops\Nrunning. The benefit of using a real for loop Dialogue: 0,0:00:51.36,0:00:55.47,Default,,0000,0000,0000,,instead of the repeat block is that you can\Nactually see the counter variable and use Dialogue: 0,0:00:55.47,0:01:01.72,Default,,0000,0000,0000,,it in your loop. For example, if I have a\Nseries of flowers and the first one has one Dialogue: 0,0:01:01.72,0:01:06.74,Default,,0000,0000,0000,,nectar, the second one has two nectars and\Nthe third one has three, I can use the for Dialogue: 0,0:01:06.74,0:01:12.47,Default,,0000,0000,0000,,loop to tell the bee to collect 'counter'\Nnectars each time, which would one at the Dialogue: 0,0:01:12.47,0:01:18.17,Default,,0000,0000,0000,,first flower, two at the second and three\Nat the third. Also in a for loop, you can Dialogue: 0,0:01:18.17,0:01:22.94,Default,,0000,0000,0000,,increment the counter by a number other than\None each time. You can potentially count by Dialogue: 0,0:01:22.94,0:01:26.78,Default,,0000,0000,0000,,2s, 4s or even an amount that changes every\Ntime through.