If-then-else – Texas Instruments TI-84 User Manual

Page 441

Advertising
background image

Chapter 16: Programming

438

:End
:
command

If-Then-Else

If-Then-Else

If-Then-Else

If-Then-Else

Else

following

If-Then

executes a group of

commands

if

condition

is false (zero).

End

identifies the end of the group of

commands

.

:If condition
:Then
:
command (if true)
:command (if true)
:Else
:
command (if false)
:command (if false)
:End
:
command

Program

Output

Program

Output

Advertising