Download presentation
Presentation is loading. Please wait.
Published byPiers Chambers Modified over 8 years ago
1
Control Structure What is control Structure? Types of Controls Use the control structure in VBScript. Example Summery
2
What is Control Structure. The control structure is the section of the program that allows your program to make decisions based on the information required by the program.
3
Control Types Conditional Logic Looping Logic Branching Logic
4
Conditional Logic Conditional statement will check the condition first, if it is true then it will execute the section of the program otherwise it will execute the next step of the program based on the information. Syntax: If ( condition) then Execute the statements ----------------- else Execute the next steps End if.
5
Use of Select-Case command Select Case allows you to specify a sequence of code blocks, one of which will be carried out depending on the value of a numerical or string expression. Shows with example program.
6
Looping Logic Do While Loop Do loop For Loop Note: Loop Structure – more details in week-4
7
Branching Logic Control Two kinds of Branching logic controls: a) Subroutines (Procedures) b) Functions Note: More details with sample program in week-6
8
Simple Exercise focused on all topics.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.