LaunchCode logo
  1. Contents
  2. 5. Making Decisions With Conditionals

5. Making Decisions With ConditionalsΒΆ

  • 5.1. Decision Making
  • 5.2. Data Type for True/False
    • 5.2.1. Identify True and False
      • 5.2.1.1. Boolean Values
      • 5.2.1.2. Data Type Review
  • 5.3. Boolean Expressions
    • 5.3.1. Testing for Equality
      • 5.3.1.1. Try It!
    • 5.3.2. Other Comparisons
    • 5.3.3. Check Your Understanding
  • 5.4. Can We Do Math with Boolean Values?
  • 5.5. Conditionals
    • 5.5.1. if Statements
      • 5.5.1.1. Try It!
    • 5.5.2. else Clause
    • 5.5.3. Check Your Understanding
  • 5.6. Logical Operators
    • 5.6.1. Logical and
    • 5.6.2. Logical or
    • 5.6.3. Logical not
    • 5.6.4. Longer Combinations
    • 5.6.5. Check Your Understanding
  • 5.7. Truth Tables
    • 5.7.1. Order of Operations
      • 5.7.1.1. Table of Operator Order
    • 5.7.2. Check Your Understanding
  • 5.8. Nested Conditionals
    • 5.8.1. Nesting Also Works With else
    • 5.8.2. Check Your Understanding
  • 5.9. Chained Conditionals
    • 5.9.1. elif Statements
      • 5.9.1.1. Multiple elif Statements
    • 5.9.2. Nested vs. Chained Conditionals
    • 5.9.3. Check Your Understanding
  • 5.10. Exercises: Booleans and Conditionals
    • 5.10.1. Part A: Basic Selection
      • 5.10.1.1. if Only
      • 5.10.1.2. Binary Selection
    • 5.10.2. Part B: Logical Operators
    • 5.10.3. Part C: Chained Conditionals
    • 5.10.4. Part D: Nested Conditionals
  • 5.11. Project: Conditional Launch
    • 5.11.1. Spacecraft Data
    • 5.11.2. Part A: PREDICT
    • 5.11.3. Part B: Cabin Safety Checks
    • 5.11.4. Part C: Fuel Safety Checks
      • 5.11.4.1. Test Your Fuel Status Code
    • 5.11.5. A Final Bit of Fun!
  • ← 4.11. Project: Data & Variables
  • 5.1. Decision Making →

Back to top

Page Source