Because all these are situations are mutually exclusive, you do not need to nest any statement. Neither do you need an else. However, you can use them if it makes you code simpler to you.


This topic: CenterForComputing > WebHome > Syllabi > CSC121SylS2023 > CSC121S2023Lab02 > CSC121S2023Lab2H1 > CSC121S2023Lab2H1a
Topic revision: r1 - 2022-12-29 - cathybareiss
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback