03

Decisions, Loops, and Functions

Give your pages a brain: react to conditions with if/else, repeat work with loops, and bundle logic into reusable functions.

3 lessons
  1. 7 Making Decisions with if and else Different visitors, different pages 8 min
  2. 8 Loops, Especially foreach Do it for every item in the list 9 min
  3. 9 Functions: Write Once, Use Everywhere Bundling code into reusable, named recipes 9 min