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

Comparison Operators

Logical Operators

Precedence of Operations

Operators in descending order of precedence:

  1. ( — Opening Grouping Parenthesis
  2. ) — Closing Grouping Parenthesis
  3. not — Negation (Logical NOT)
  4. * — Multiplication
  5. / — Division
  6. + — Addition
  7. - — Subtraction
  8. < — Less Than
  9. <= — Less Than or Equal
  10. > — Greater Than
  11. >= — Greater Than or Equal
  12. = — Equal
  13. == — String Mask Comparison
  14. != — Not Equal
  15. <> — Not Equal
  16. && — Conjunction (Logical AND)
  17. and — Conjunction (Logical AND)
  18. || — Disjunction (Logical OR)
  19. 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]

input [variable]

inv- {quantity,} [item]

inv+ {quantity,} [item]

invkill {item}

javascript [code]

music [file]

not

or

p {text}

pause [number of milliseconds]

perkill

play [file]

pln {text}

println {text}

proc [label]

quit

save

then