Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
TI-BASIC
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Control flow === [[Control flow]] statements include [[conditional (programming)|if-then-else blocks]], [[for loop]]s, [[while loop]]s, and [[do while loop|repeat loops]], though no [[switch statement]]s. The main control flow statements are:<ref>{{Cite web |title=Skill Builder 1: Loops and the For(...) loop |url=https://education.ti.com/-/media/ti/files/resources/ti-codes/84/unit-4/skill-builder-1/unit-4-skill-builder-1_teacher.pdf |access-date=April 17, 2025 |website=TI Education}}</ref> <pre> If condition Then ... Else ... End For(variable,start,stop,step) ... End While condition ... End Repeat condition ... End </pre> Unusual for a high level language, TI-BASIC implementations include IS> (Increment and Skip if Greater Than) and DS< (Decrement and Skip if Less Than) statements, constructs generally associated with [[assembly language]]s. Sections of programs can be [[Label (programming language)|labeled]]; however, particularly on the Z80 models, the labels function as destinations for [[Goto]] statements or <code>Menu(</code> functions rather than as program or block labels. Availability of functions and subroutines depends on the implementation; the versions available on the TI-82-descended calculators do not even support a [[GOSUB]]-like function, though it is possible to call programs from within each other and share variables between programs. TI-89/92-based designs can have access to shared functions, essentially programs capable of returning a value.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)