page_title: TI-BASIC 83
section_title: Menu( statement
hierarchical_section_title: TI-BASIC 83 / Syntax / Conditionals / Menu( statement
caption_attribution_description: English: An example of the rendering of Menu("TITLE","FIRST",1,"SECOND",2,"THIRD",3) on a TI-84 Plus CE calculator, as explained on TI-BASIC_83_(Z80).
context_page_description: TI-BASIC 83, TI-BASIC Z80 or simply TI-BASIC, is the built-in programming language for the Texas Instruments programmable calculators in the TI-83 series. Calculators that implement TI-BASIC have a built in editor for writing programs. While the considerably faster Z80 assembly language is supported for the calculators, TI-BASIC's in-calculator editor and more user friendly syntax make it easier to use. TI-BASIC is interpreted.
context_section_description: It does, however, have a Menu( statement which allows a user to select one of a number of options. Similar to a switch menus do have fallthrough. The general syntax is Menu(, a quoted title string, and followed by quoted option name and label name. An example:
  :Menu("TITLE","FIRST",1,"SECOND",2,"THIRD",3)
  :Lbl 1
  :body one
  :Lbl 2
  :body two
  :Lbl 3
  :body three
  The image is how the calculator renders the example above.
  In terms of functionality, the Menu('s flow is similar to some switch statement and cases,  with a key difference that the user supplies the switch's usual expression. Like many switches and cases, the Lbl allows fall-through. For example, in the code above, if a user selects "FIRST", all three bodies are executed. However, selecting "SECOND" means only the second and third bodies are executed.
caption: TI-84 Plus CE Menu example
exif: {}