Conditional Tests - Texas Instruments TI-89 Titanium User Manual

Hide thumbs Also See for TI-89 Titanium:
Table of Contents

Advertisement

Command
Description
mid
Returns a specified number of characters from any position
within a string.
ord
Returns the character code of the first character within a
string. This is the opposite of the char command.
right
Returns a specified number of characters from the right side
(end) of a string.
rotate
Rotates the characters in a string. The default is L1 (rotate
right one character).
shift
Shifts the characters in a string and replaces them with
spaces. The default is
replace with one space). Examples: shift("abcde",2)
and shift("abcde")
string
Converts a numeric expression into a string. This is the
opposite of the expr command.

Conditional Tests

Conditional tests let programs make decisions. For example, depending on whether a
test is true or false, a program can decide which of two actions to perform. Conditional
tests are used with control structures such as
(described later in this module).
While...EndWhile
Programming
L
1 (shift right one character and
" abcd"
If...EndIf
"cde "
and loops such as
587

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents