Presentation is loading. Please wait.

Presentation is loading. Please wait.

Control Structure  What is control Structure?  Types of Controls  Use the control structure in VBScript.  Example Summery.

Similar presentations


Presentation on theme: "Control Structure  What is control Structure?  Types of Controls  Use the control structure in VBScript.  Example Summery."— Presentation transcript:

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.


Download ppt "Control Structure  What is control Structure?  Types of Controls  Use the control structure in VBScript.  Example Summery."

Similar presentations


Ads by Google