The following symbols are characters that specify how to combine, compare, or modify the values of an expression. These will be used in performing math operations, setting variables, and comparing operators or variables in conditional statements (ifgoto, ifgosub).

Arithmetic

Symbol

Name

Description

+

addition

Adds numeric expressions.

--

decrement

Subtracts 1 from the operand. ** Not implemented yet

/

division

Divides expression1 by expression2.

++

increment

Adds 1 to an expression. ** Not implemented yet

MOD

modulo

Calculates the remainder of expression1 divided by expression2.

*

multiplication

Multiplies two numerical expressions.

-

subtraction

Used for negating or subtracting.

Comparison

Symbol

Name

Description

==

equality

Tests two expressions for equality.

>

greater than

Compares two expressions and determines whether expression1 is greater than expression2; if it is, the result is true.

>=

greater than or equal to

Compares two expressions and determines whether expression1 is greater than or equal to expression2 (true) or expression1 is less than expression2 (false).

!=

inequality

Tests for the exact opposite of the equality (==) operator.

<

less than

Compares two expressions and determines whether expression1 is less than expression2; if so, the result is true.

<=

less than or equal to

Compares two expressions and determines whether expression1 is less than or equal to expression2; if it is, the result is true.

Assignment

Symbol

Name

Description

=

assignment

Assigns the value of expression2 (the operand on the right) to the variable, array element, or property in expression1.

Examples:


ScriptBasicSyntax

Operators (last edited 2012-10-28 21:49:25 by Inanna)