C# Fundamentals for Absolute Beginners: (07) Branching with the if Decision Statement and the Conditional Operator

Branching allows us to add logic to our applications. This lesson introduces the if Decision statement (in its various forms), along with the conditional operator. We also discuss how to refactor our code to make it more compact and less likely to produce errors, by eliminating duplicate code.

Full course outline: