CARD 1
Introduction
Login to report note issues for this section.
Conditionals — if, else, switch
A conditional is a control structure that executes a block of code only when a specific condition is met. It allows a program to make decisions based on data.
Without conditionals, a program would run the same code every time regardless of input or state. Conditionals make programs dynamic and responsive.