May 13, 2021 vb.net
The decision structure requires the programmer to specify one or more conditions for evaluating or testing the execution of programs and statements or statements, and if the conditions determined are true, and if the conditions determined are false, other statements are executed.
The following are typical structural findings of decision-making in the general form of most programming languages:
VB.Net provides the following types of decision statements.
Click the link below to check its details.
statement | describe |
---|---|
If ... Then statement |
An
If...Then statement
consists of a boolean expression followed by one or more statements.
one If...Then Statement Composed with one or more statements by a Boolean expression. |
If...Then...Else statement |
An
If...Then statement
can be followed by an optional
Else statement
, which executes when the boolean expression is false.
one If...Then Statement Behind it can be an optional ELSE statement When the Boolean expression is executed in time. |
nested If statements |
You can use one
If
or
Else if
statement inside another
If
or
Else if
statement(s).
You can be in one if or else if The IF or ELSE IF statement is used in the statement. |
Select Case statement |
You can use one If or Else if statement inside another If or Else if statement(s).
Select Case The statement allows the variables to be tested according to the value list. |
Nested Selection Case statement nested Select Case statements |
You can use one
select case
statement inside another
select case
statement(s).
You can use one select case Use one in the statement select case Scriptures. |