Skip to main content

Section 2.1 WriteConditional-Subgoals

Subgoals for writing conditionals.

  1. Define how many mutually exclusive paths are needed
  2. Order paths from most restrictive to least restrictive
  3. Write conditional statement with Boolean expression
  4. Follow with true path including action in indentation
  5. Repeat 3 and 4 until all paths are included
  6. (Optional) Follow with else path including action in indentation
You have attempted of activities on this page.