Once that condition is met, the loop ends. Below is a table outlining several situations that we may want to program for, and the suggested controls to use. I need to show the user which of several meetings they should attend. The meeting displayed is based on which department they belong to. Branching We want to write only one of several possible meeting locations I want to list each member of a club.
Lets take a closer look at each of the control structures.
As you read above, branching structures are used to perform a test on a variable or a groupd of variables. This can be a wide range of things such as assigning a value to a variable, or redirecting the user to different page. Lastly, END IF must be at the end of the structure to signal the server that the branching control is finished so it can execute the rest of the code. If the user is new, we'll send them to the new account page. If the user is a member, then we'll display the member information.