TOPICA Basic Operators |
[This is preliminary documentation and is subject to change.]
TOPICA Basic supports most of the usual operators commonly found in programming languages.
Operator | Description |
---|---|
+ | Functionality depends on type of operands:
|
- | Subtraction |
* | Multiplication |
/ | Division. When both operands are type Integer, the result is also of type Integer. When one or both operands are type Dobule, the result is of type Double. |
Mod | Modulus operator (for integer operands only) |
^ | Power |
Operator | Description |
---|---|
= | "Equal" operator |
< | "Less than" operator |
<= | "Less than or equal" operator |
> | "Greater than" operator |
>= | "Greater than or equal" operator |
Name | Description |
---|---|
And | Logical And |
Or | Logical Or |
Not | Logical Not Note that Not may also be used as a function (same functionality, but different syntax). |