Please enable JavaScript to use CodeHS

CodeHS Glossary


Nested If/Else General

A nested if/else lets a program make a decision inside a decision. The inner question is asked only when the outer condition leads to it, like checking which wall the robot found only after it senses a wall.