Specifications
84
6.3.4 Function Operators
The following two types of functions are available in BHT-BASIC, both of which work as func-
tion operators:
■
Built-in Functions
Already built in BHT-BASIC, e.g., ABS and INT.
■ User-defined Functions
Defined by using DEF FN (in single-line form), DEF FN...END DEF (in block form),
SUB...END SUB, or FUNCTION...END FUNCTION statement.
6.3.5 String Operators
A character string operator may concatenate or compare character strings.
Listed below are the types of character string operators available.
■
Concatenation of Character Strings
The process of combining character strings is called concatenation and is executed
with the plus sign (+). The example below concatenates the character strings,
a$ and
b$.
a$="Work1" : b$ = "dat"
PRINT a$+"."+b$
Operations Character String Operators Examples
Concatenation
+ (Plus sign) a$+"."+b$
Comparison
= (Equal) a$=b$
<>, ><
(Not equal) a$<>b$, a$><b$
>, <, =<, =>, <=, >=
(Greater or less) a$>b$, a$=>b$
Work1.dat