Please enable JavaScript to use CodeHS

CodeHS Glossary


Conditional General

A conditional checks a True or False condition. An **if** block runs its blocks only when the condition is True. An **if/else** block runs one set of blocks when the condition is True and a different set when it is False.