Programming
603
Conditional Tests
Conditional Tests
Conditional Tests
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).
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
Содержание Voyage 200
Страница 36: ...Getting Started 36 D B D B Press Result ...
Страница 45: ...Getting Started 45 3 0 D B D D B D Press Result ...
Страница 46: ...Getting Started 46 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Страница 60: ...Getting Started 60 B D Press Result ...
Страница 139: ...Previews 139 8 Complete the operation Press 2 d Steps and keystrokes Display 5 f 2 ...
Страница 181: ...Operating the Calculator 181 From the Keyboard From the Keyboard From the Keyboard From the Keyboard ...
Страница 453: ...Differential Equation Graphing 453 ...
Страница 468: ...Tables 468 ...
Страница 515: ...Split Screens 515 Note Both Top Bottom and Left Right splits use the same methods to select an application ...
Страница 777: ...Activities 777 ...