MMBasic supports manipulation of ASCII characters as well as text strings.
EXPRESSIONS
In most cases where a number or string is required you can also use an expression. For example:
FNAME$ = “TEST”
RUN FNAME$ + ”.BAS”
String constants are surrounded by double quote marks (“). Eg, “Hello World”.
String operators | |
+ | Join two strings |
<>
< > <= =< >= => |
Inequality,
less than, greater than, less than or equal to, less than or equal to (alternative version), greater than or equal to, greater than or equal to (alternative version) |
= | Equality |
String comparisons respect case. For example “A” is greater than “a”.
Leave a Reply