Syntaxįollowing is the syntax of a Switch statement in VBScript.įor demo purpose, let us find the type of integer with the help of a function. Case Else statement is executed if the test expression doesn't match any of the Case specified by the user.Ĭase Else is an optional statement within Select Case, however, it is a good programming practice to always have a Case Else statement. ![]() Each value is called a Case, and the variable is being switched ON based on each case. When a user wants to execute a group of statements depending upon a value of an Expression, then Switch Case is used.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |