While working through this book last spring, I glossed over the fact that nowhere in either the Java or C chapters on control flow/jumping does the book explain how if-else if-else statements work. Both chapters just explain if, tack on else, and move on to and and or. It was just tonight that it dawned on me that else if is literally just an if-else whose else block happens to be another if statement.
I realize the printed version is already out, but can we put a blurb in the online book about this magic? Future readers would appreciate it.
While working through this book last spring, I glossed over the fact that nowhere in either the Java or C chapters on control flow/jumping does the book explain how
if
-else if
-else
statements work. Both chapters just explainif
, tack onelse
, and move on toand
andor
. It was just tonight that it dawned on me thatelse if
is literally just anif
-else
whoseelse
block happens to be anotherif
statement.I realize the printed version is already out, but can we put a blurb in the online book about this magic? Future readers would appreciate it.