Chapter 4. Control structures


This chapter covers
  • Jumping to other pieces of code inside a program
  • Creating attractive, usable menus
  • Using For, While, and Repeat loops to create complex programs
  • Using subprograms for recursion and code reuse


Conditional statements allow your program to make decisions given rules and facts, as you now know from chapter 3. If your programs could use these decisions to jump around within their source code and execute different sections, they could become vastly more powerful. With such commands, you could create whole new classes of programs and games. You’d be able to write your own programs like the GUESS guessing game in chapter 1 that we touched on briefly again in chapters 2 and 3. With loop and jump ...

Get Programming the TI-83 Plus/TI-84 Plus now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.