Understand Control Structures

A computer is good at doing one thing and one thing only—executing a series of instructions. From the computer's point of view, it is simply handed a sequence of instructions to execute, and it does so accurately and quickly.

The instructions executed by the computer are spelled out using a programming language, such as Visual Basic .NET. For example, if you want the computer to create an integer variable, assign the value 4 to it, and then multiply the variable's value by 2, you could use the following code:

 'Create a variable of type Integer and assign it the value 4 Dim someVariable as Integer = 4 'Multiply the value of someVariable by 2 and assign the product 'back to the variable someVariable (this is equivalent ...

Get SAMS Teach Yourself ASP.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.