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
Summary of Contents for Voyage 200
Page 36: ...Getting Started 36 D B D B Press Result ...
Page 45: ...Getting Started 45 3 0 D B D D B D Press Result ...
Page 46: ...Getting Started 46 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Page 60: ...Getting Started 60 B D Press Result ...
Page 139: ...Previews 139 8 Complete the operation Press 2 d Steps and keystrokes Display 5 f 2 ...
Page 453: ...Differential Equation Graphing 453 ...
Page 468: ...Tables 468 ...
Page 777: ...Activities 777 ...