That's an if/else, a fork where the condition picks the road. The second move is repetition: a loop runs the same block again and again while its condition stays true.
Saturday, and Sam's on coffee duty for three friends, one label per cup. The classic tool is the for loop, three parts in one line: start (let i = 1), check (i <= 3), step (i++, add one). Watch one actually run, this diagram is the debugger's-eye view.