O'Reilly logo

XNA® 3.1 Game Development for Teens: Game Development on the PC, Xbox 360®, and Zune® Player by Jerry Lee Ford

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Conditional Logic and Loops

In the previous chapter, you learned the basics of C# syntax and the different types of data that C# can work with. You also learned how to store data using constants, variables, and arrays and to compare and analyze it using various C# operators. In this chapter, you will further expand your knowledge of C# programming by learning how to use conditional programming logic to analyze data and control program execution. You will then learn how to create and use loops to perform repetitive actions.

An overview of the major topics covered in this chapter includes learning how to:

  • Use different variations of the if statement to analyze data

  • Use the switch statements to compare data against a range of values

  • Set up ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required