And that's about it for this article. Over the last few pages, I listed the comparison operators required by conditional statements for branching program execution at run time, gave you a quick overview of the entire family of "if" conditional statements, explained the usage of logical operators to carry out complex decisions in a single expression and wrapped up the article with an explanation of the "switch" conditional statement.
In the next segment of this tutorial, I'll be talking about how you can repeatedly execute the same set of statements using a variety of different loop constructs. C# comes with most of the usual suspects - I'll show you all of them, together with examples and illustrations to get you familiar with the basics, and with the differences between then. Until then, though, you now know enough about C#'s conditional statements to begin writing simple programs - so go practice!
Note: Examples are illustrative only, and are not meant for a production environment. Melonfire provides no warranties or support for the source code described in this article. YMMV!
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |