October 2008
Beginner to intermediate
680 pages
16h 48m
English
Very rarely will a program execute sequentially, line by line, from start to finish. Instead, the execution flow of the program will be conditional. It might be necessary to have the program execute a certain block of code if a condition is met or another block of code if the condition isn't met. A program might have to repeatedly execute the same block of code. The C# language provides a number of different types of loops and other flow of control structures to take care of these situations.
The if statement is a basic conditional branch statement that executes one or more lines of code if a condition, represented as a logical expression, is satisfied. Alternatively, one ...
Read now
Unlock full access