Control Flow
The control flow is the path of execution through a program.
Related concepts: SequenceConditionalLoop
Closest Wikipedia entry: Control flow
Misconceptions about Control Flow34 documented Misconceptions
Check YourselfConditionalIsSequence
If-else is equivalent to sequence of two ifsDeferredReturn
A return statement in the middle of a function doesn't return immediatelyIfIsLoop
The body of an if-statement executes repeatedly, as long as the condition holdsNoShortCircuit
and/or always evaluate both operandsOutsideInFunctionNesting
Nested function calls are invoked outside inRecursiveFunctionNeedsIfElse
A recursive function needs to contain an if-else statementRightToLeftChaining
Chained accesses are invoked from right to left