EasyManuals Logo

Sinclair QL User Manual

Sinclair QL
422 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #156 background imageLoading...
Page #156 background image
[will print
21
[will print
4)
[will print
0)
•
•
•
INSTR
is
an
operator which
will
determine
if
a given substring
is
contained within a
specified string.
If
the string
is
tound then the substring's position
is
returned.
If
the string
is
not found then INSTR returns
zero.
Zero can be interpreted as
false,
i.e.
the substring
was
not contained
in
the given string.
A non zero
value,
the substrings position, can be intepreted as
true,
i.e.
the substring
was
contained
in
the specified string.
syntax:
string_expression INSTR string expression
example:
I.
PRINT
lI
a" INSTR
"cat
ll
il.
PRINT
"CAT"
INSTR
"concatenate"
iii.
PRINT
"x"
INSTR
"eggs"
INT
will
return the Integer part
of
the specified floating point expression.
syntax: INT
(numenc_expression)
example:
i.
PRINT
INT(X)
ii.
PRINT
INT(3.141592654/2)
12/84
INSTR
operator
INT
maths functions
29

Other manuals for Sinclair QL

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sinclair QL and is the answer not in the manual?

Sinclair QL Specifications

General IconGeneral
ProcessorMotorola 68008
Clock Speed7.5 MHz
RAM128 KB (expandable to 640 KB)
ROM48 KB
Operating SystemSinclair QDOS
Release Year1984
StorageMicrodrive tape loop
Graphics256x256 pixels, 8 colors
PortsRS-232, ROM cartridge
SoundBeeper (internal speaker)

Related product manuals