Stage 2 — why separate ifs instead of elif?

FreyaLOP

I used elif and only the first failing rule printed.

10

Comments 5

Join the discussion

Already have an account? Log in

  1. SamPricereplies: 2

    Exactly why. elif stops after the first match. For a checklist you want every failing rule reported, so each rule needs its own independent if.

    0
    1. FreyaLOPreplies: 1

      Makes sense — the launch director needs all problems, not just the first.

      0
    2. AmeliaRuns

      This "elif vs separate ifs" distinction is one of the most useful things I learned here.

      1
      1. EmmaCodes

        And the final GO/HOLD still uses the combined and from stage 1.

        6