Free mag vol1 | Page 181

CHAPTER 3  CORE C# PROGRAMMING CONSTRUCTS, PART I • The if/else statement • The switch statement The if/else Statement First up is the if/else statement. Unlike in C and C++, the if/else statement in C# operates only on Boolean expression