β Software Engineering
Decisions: if / else
See it
A fork in the road
ifasks a yes/no question.- If the answer is yes, run one path. Otherwise (
else) run the other. - Programs use this everywhere: log in or not, win or lose, stop or go.
Question
n > 0 ?
Yes path
positive
No path
else