Control of Flow

When you run a script that you have written, the code executes in a certain order. This order of execution is also known as flow. In simple scripts, the statements execute from the top down - that is, the first statement in the script is executed first, then the next one, and on and on until the script reaches the end. The execution occurs this way because the simple programs do not contain branching or looping code.