INSTR
I N S T R ( [ < i n t e g e r
e x p r e s s i o n > )
P R I N T I N S T R ( 2 , " B A N A N A " , " A N " )
FUNCTION: Searches the first string expression, for the first occurance of the second string
expression), where the optional number at the start indicates where to start the search - otherwise
the search begins at the first character of the first string expression).
Associatedkeywords: M I D $ , L E F T $ , R I G H T $
INT
INT(<n u m e r i c e x p r e s s i o n > )
P R I N T I N T (-1 . 9 9 5 )
-2
FUNCTION: Rounds the number to the nearest lower integer, removing any fractional part. The
same as FIX for positive numbers, but returns one less than FIX for negative numbers not already
integers.
Associated keywords: C I N T , F I X , R O U N D
JOY
J O Y ( < i n t e g e r e x p r e s s i o n > )
1 0 I F J O Y ( 0 ) A ND 8 T H E N G O T 0 1 0 0
FUNCTION: The JOY function reads a bit-significant result from the joystick specified in the
<integer expression> (either 0 or
Bit
Decimal
0: Up
1
1: Down
2
2: Left
4
3: Right
8
4: Fire 2
16
5: Fire 1
32
Associated keywords: INKEY
e x p r e s s i o n > , < s t r i n g
1).
e x p r e s s i o n > , < s t r i n g