Programming
587
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
If...EndIf
and loops such as
While...EndWhile
(described later in this module).
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
L
1 (rotate
right one character).
shift
Shifts the characters in a string and replaces them with
spaces. The default is
L
1 (shift right one character and
replace with one space). Examples: shift("abcde",2)
⇒
"cde "
and shift("abcde")
⇒
" abcd"
string
Converts a numeric expression into a string. This is the
opposite of the
expr
command.
Command
Description
Summary of Contents for Titanium TI-89
Page 9: ...Getting Started 6 TI 89 Titanium keys Ë Ì Í Ê ...
Page 34: ...Getting Started 31 2 or D 2 B u s i n e s s D B D B Press Result ...
Page 43: ...Getting Started 40 3 0 D B D D B D Press Result ...
Page 44: ...Getting Started 41 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Page 58: ...Getting Started 55 Example Set split screen mode to TOP BOTTOM Press Result 3 B D ...
Page 70: ...Getting Started 67 ...
Page 175: ...Operating the Calculator 172 From the Keyboard ...
Page 456: ...Tables 453 ...
Page 527: ...Data Matrix Editor 524 ...