This content is no longer current. Our recommendation for up to date content: http://channel9.msdn.com/Series/Visual-Basic-Fundamentals-for-Absolute-Beginners
Branching with the If . . . Then . . . Else Decision Statement - 06
Branching allows us to add logic to our applications. In this lesson you're introduced to the If Decision statement (in its various forms) as well as the IIf conditional function. We also discuss how to refactor our code to make it more compact and less likely to produce errors by eliminating duplicate code.