Introduction
C# programs often need to respond differently depending on the situation—checking a game's outcome, applying a discount, or displaying a personalized message. Decision logic lets your code choose which instructions to run.
In this module, you learn how to evaluate conditions with Boolean expressions and comparison operators, use if, else if, and else statements to control the flow of your code, and combine conditions with logical operators. You put these skills together to build a dice game and solve a subscription renewal challenge.
Note
We recognize that different people like to learn in different ways. You can choose to complete this module in video-based format or you can read the content as text and images. The text contains greater detail than the videos, so in some cases you might want to refer to it as supplemental material to the video presentation.