To run only one statement when a condition is True, use the single-line syntax of the If.Then.Else statement. Running statements if a condition is True However, for readability, you may want to use a Select Case statement rather than multiple levels of nested If.Then.Else statements. If.Then.Else statements can be nested to as many levels as you need. You can use the If.Then.Else statement to run a specific statement or a block of statements, depending on the value of a condition.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |