Go to documentation repository
Documentation for Intellect 4.10.4. Documentation for other versions of Intellect is available too.
Previous page Next page
The table below lists and describes comparison, arithmetic and conditional operators.
Operator | General description, example use | |
Comparison operators | ||
> | Comparison operator – greater. See example in Description of operators section. | |
< | Comparison operator – greater. See example in Description of operators section. | |
Arithmetic operators | ||
+ | Addition. Example use: OnEvent ("MACRO","1","RUN") { x=5; y=10; i=x+y; // add strings, i.e. 5+10=510 e=str(x+y); // add integers 5+10=15 } | |
- | Subtraction. Example use: OnEvent ("MACRO","1","RUN") { x=5; y=10; i=x-y; // subtract integers 5-10=-5 e=str(x-y); // subtract integers 5-10=-5 } | |
* | Multiplication. Example use:
| |
/ | Division. Example use:
| |
% | Remainder after integer division. Example use.
| |
( ) | Group of arithmetic operators. Example use.
| |
Logical operators | ||
&& | Logical AND operator. Example use:
| |
! | Logical inversion operator. Example use:
|