Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of C#
  • Discussion

  • Study Guides

  • Table of Contents

Bookmark and Share
Lecture Comments (2)

1 answer

Last reply by: Kitt Parker
Sat May 9, 2015 9:18 PM

Post by David Löfqvist on March 8, 2015

How do I use "<", ">" and "<=" to compare inputs in switch-statements?

Program Flow Control

  • Decisions use Boolean logic (True/False)
  • The two types of Boolean operators are: Comparison Operators, which compare two values, and Logical Operators, which compare two or more expressions
  • if…else statements are used for a small number of evaluations
  • The shortened if statement
    • [variable] = (boolean) ? “True Value” : “False Value”;
  • switch statements are for a large number of evaluations