operators
Operator is a special symbol, keyword, or construct that performs a specific action on data (operands) or operates independently without them. It represents the minimal autonomous unit of program code.
Quick Reference of Operators for Typical Actions
Arithmetic Operators
Addition: +
Subtraction: -
Multiplication: *
Division: /
Comparison Operators
Equal: =
Not Equal: != or <>
String Mask Comparison: ==
Less Than: <
Greater Than: >
Less Than or Equal: <=
Greater Than or Equal: >=
Logical Operators
Negation (Logical NOT): not
Conjunction (Logical AND): && or and
Disjunction (Logical OR): || or or
Precedence of Operations
Operators in descending order of precedence:
( — Opening Grouping Parenthesis
) — Closing Grouping Parenthesis
not — Negation (Logical NOT)
* — Multiplication
/ — Division
+ — Addition
- — Subtraction
< — Less Than
<= — Less Than or Equal
> — Greater Than
>= — Greater Than or Equal
= — Equal
== — String Mask Comparison
!= — Not Equal
<> — Not Equal
&& — Conjunction (Logical AND)
and — Conjunction (Logical AND)
|| — Disjunction (Logical OR)
or — Disjunction (Logical OR)
Complete Reference of Operators with Details
-
!=
&&
( )
*
/
:[label]
[[ text {| label or actions }]]
||
+
<
<=
<>
=
==
>
>=
and
anykey {variable}
btn [label or actions], [text]
cls
clsb
end
else
forget_procs
goto [label]
if [condition] then [actions then] {else [actions else]}
image [file]
inv- {quantity,} [item]
inv+ {quantity,} [item]
invkill {item}
music [file]
not
or
p {text}
pause [number of milliseconds]
perkill
play [file]
pln {text}
print {text}
println {text}
proc [label]
quit
save
then
varkill