Evaluate Boolean expressions to make decisions in C#

Beginner
Developer
Student
.NET

Learn the operators and techniques required to evaluate and compare values in your decision statements.

In this module, you will:

  • Use operators to create Boolean expressions that test for comparison and equality.
  • Use built-in methods to the string class to perform better evaluations on strings.
  • Use the negation operator to test for the opposite of a given condition.
  • Use the conditional operator to perform an inline evaluation.

Prerequisites

  • Experience with the basics of variables, data types, and sending output to the console
  • Experience using the if-elseif-else construct
  • Experience using the Random class to generate a random number