EnglishРусский  

Ads

Scriptius script builder
Provides the best choice in work automation and great time saving features.

CreateInstall
Freeware and commercial installers

Gentee needs your help!
How to advertise with us
 
laptop battery

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

Edit