[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