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

Play C# Fundamentals for Absolute Beginners: (07) Branching with the if Decision Statement and the Conditional Operator
Sign in to queue

Description

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:

Embed

Download

Download this episode

The Discussion

  • User profile image
    Maeve Brophy

    Hi Bob
    I wonder can you help me. I am trying to do the decisions project. I have written the cod down I am having issues with If Else.
    From Maeve

  • User profile image
    jinzu
    You use "else if". Not if else.
  • User profile image
    rleduc
    Here it is June 2019 and I'm just finding and learning C#. My question is this, I know why you put the Console.ReadLine(); in but with using VS 2019 it appears to be a not needed step. Is there another reason for using it?

Add Your 2 Cents