EnglishРусский  
The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

Macro expressions

When you define macros with the help of The define command and in The ifdef command, you can use simple expressions with constants and macros. Operands must be of the same type except for logical operations && and ||. It is possible to use parentheses to specify the order of calculating the expression.

OperationType of operandsType of result
Arithmetic operators
+int uint long ulong float doubleint uint long ulong float double
-int uint long ulong float doubleint uint long ulong float double
*int uint long ulong float doubleint uint long ulong float double
/int uint long ulong float doubleint uint long ulong float double
Bit operators
&int uint long ulongint uint long ulong
|int uint long ulongint uint long ulong
^int uint long ulongint uint long ulong
Logical operators
&&int uint long ulong float double str(1 if the length >0) buf(1 if the length >0)int uint
||int uint long ulong float double str(1 if the length >0) buf(1 if the length >0)int uint
Comparison operators
==int uint long ulong float double str bufint uint
!=int uint long ulong float double str bufint uint
>=int uint long ulong float doubleint uint
<=int uint long ulong float doubleint uint
>int uint long ulong float doubleint uint
<int uint long ulong float doubleint uint
Unary operators
+int uint long ulong float doubleint uint long ulong float double
-int uint long ulong float doubleint long float double
~int uint long ulongint uint long ulong
!int uint long ulong float double str(1 if the length >0) buf(1 if the length >0)int uint


7 + $YEAR - 2000
2.3 * ( VAL1 - $VAL0 / 2.0 ) 
$VALFLAG | 0xff00
$MODE1 || ( $MODE2 == 3 && $COMPILE == "WINDOWS" )
$PROGNAME != "My Application" && $PROG != "Debug"

Related links