Changes

Visual Basic Flow Control

421 bytes added, 18:39, 7 August 2007
Using If ... Then to Make Decisions
'''Endif'''
 
Essentially if the ''expression'' evaluates to ''True'' (see [[Visual Basic Comparison and Logic]] for more details of this type of logic) then the code in the body of the statement is executed. If, on the other hand, the expression evaluates to ''False'' the code is skipped.
 
For example, if a decision needs to be made depending on whether one string matches another the following code might be used:
 
<pre>
 
 
</pre>