Trace a Decision Inside a Decision
Scenario
The slot is free, but the student has no booking permission.
- 1Is the slot free?
- 2Does the student have permission?
- 3Return declined
Try it yourself
Step through the decisions and find where the request stops.
- Is the slot free?
- Does the student have permission?
- Return declined
Reveal the explanation
- Is the slot free?
Yes. Continue to the permission check.
- Does the student have permission?
No. Follow the decline branch.
- Return declined
The free slot alone is insufficient.
Try an occupied slot. The first decision now declines the request before the permission question.
Download shared test cases
Your turn
Trace an occupied slot and then a free slot with permission.
Common mistake Running the inner permission check on a branch that already declined.
Check your work
The first path skips the inner check. The second reaches it and accepts.
This browser could not save your progress. Changes last until you leave the page.