1.What is Decision Making Statement?
Decision making is about deciding the order of execution of statements based on certain conditions or repeat a group of statements until certain specified conditions are met2.Types of Decision Making Statement
VBScript provides following types of decision making statements.3.VBScript If Statement
4.VBScript If else Statement
5.VBScript If elseIf Statement
An If statement followed by one or more ElseIf Statements that consists of boolean expressions and then followed by a default else statement, which executes when all the condition becomes false. When this code is executed, it produces the following result "c is greatest".6.VBScript Nested If else Statement
An If or ElseIf statement inside another If or ElseIf statement(s). The Inner If statements are executed based on the Outermost If statements. This enables VBScript to handle complex conditions with ease. When this code is executed, it produces the following result "c is greatest".7.VBScript Switch Statement
When a User want to execute a group of statements depending upon a value of an Expression, then Switch Case is used. Each value is called a Case, and the variable being switched ON based on each case. Case Else statement is executed if test expression doesn't match any of the Case specified by the user. Case Else is an optional statement within Select Case, however, it is a good programming practice to always have a Case Else statement. When this code is executed, it produces the following result "Inside Switch 2".8.Visit GoLearningBus.Com for more "www.vbsedit.com" training
Visit GoLearningBus.Com for more "www.vbsedit.com" guided tours and training.