Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition
by Paul J. Deitel - Deitel & Associates, Inc., Harvey M. Deitel - Deitel & Associates, Inc.
5.15. Wrap-Up
In this chapter, we demonstrated two of Visual Basic’s selection statements—the If...Then single-selection statement and the If...Then...Else double-selection statement. The If...Then statement is used to execute a set of one or more statements based on a condition—if the condition is true, the statements execute; if it is false, the statements are skipped. The If...Then...Else double-selection statement is used to execute one set of statements if a condition is true, and another set if the condition is false. We discussed the While and Do While...Loop repetition statements, where a set of statements is executed repeatedly as long as a loop-continuation condition remains true. We discussed the Do Until...Loop repetition statement, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access