Following is the general form of a typical decision making structure found in most of the programming languages:
VB.Net provides the following types of decision making statements. Click the following links to check their details.| Statement | Description |
|---|---|
| If ... Then statement | An If...Then statement consists of a boolean expression followed by one or more statements. |
| If...Then...Else statement | An If...Then statement can be followed by an optional Else statement, which executes when the boolean expression is false. |
| nested If statements | You can use one If or Else if statement inside another If or Else if statement(s). |
| Select Case statement | A Select Case statement allows a variable to be tested for equality against a list of values. |
| nested Select Case statements | You can use one select case statement inside another select case statement(s). |
No comments:
Post a Comment