Datatypes / Operators
Datatypes
The Plugin system supports three elementary data types: signed integer numbers, floating-point numbers (Double), and character strings. Boolean values are represented as integers and can be either 1 or 0. DateTime values are handled as strings with a length of 14 characters in the format "yyyymmddhhnnss".
- String
- Integer
- Double
- Boolean
- DateTime
The data type of a variable does not need to be declared explicitly. It is determined automatically when you assign a value to the variable.
DateTime values are strings with a length of 14 characters in the format "yyyymmddhhnnss". You can extract information from a DateTime value by using string functions, for example Mid($date,1,4) extracts the year. You can also use DateTime-related functions such as AddDay, AddMinute, and DateDiff.
Boolean values are represented by integers and can be either 1 or 0. You can also use True and False.
Type conversion
In expressions, values of different data types are converted automatically if necessary. You can also use the functions CStr(), CInt(), and CDbl() to convert variables from one elementary data type to another.
Operators
|
( ) |
grouping |
|
Not |
logical negation |
|
And |
logical AND |
|
Or |
logical OR |
|
+ |
addition, string concatenation |
|
- |
subtraction |
|
* |
multiplication |
|
/ |
division |
|
Div |
division without remainder |
|
Mod |
modulus (remainder of division) |
|
< |
less than |
|
<= |
less than or equal to |
|
> |
greater than |
|
>= |
greater than or equal to |
|
= |
equal |
|
<> |
not equal |