Chapter 15. Using Conditionals
Contents
Related Topics
Taming deep nesting: Taming Dangerously Deep Nesting
General control issues: Chapter 19
Code with loops: Chapter 16
Straight-line code: Chapter 14
Relationship between data types and control structures: Relationship Between Data Types and Control Structures
A conditional is a statement that controls the execution of other statements; execution of the other statements is "conditioned" on statements such as if, else, case, and switch. Although it makes sense logically to refer to loop controls such as while and for as conditionals too, by convention they've been treated separately. Chapter 16, will examine while and for statements.
if Statements
Depending on the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access