Navigation:  Click-Script Guide > Expressions >

Numeric Expressions

Previous pageReturn to chapter overviewNext page

Numeric expressions are numbers, variables and operations with numbers and variables. You will need to use numeric expressions to access array items, create logical expressions and inside the click-script events.

 

 

Arithmetic Operators

 

exp1 + exp2

Results the sum of the value of expression 1 with the value of expression 2.

exp1 - exp2

Results the subtraction of the value of expression 1 with the value of expression 2.

exp1 * exp2

Results the multiplication of the value of expression 1 with the value of expression 2.

exp1 / exp2

Results the division of the value of expression 1 with the value of expression 2.

exp1 ^ exp2

Results the value of expression 1 power the value of expression 2.

exp1 % exp2

Results the division's module of the value of expression 1 with the value of expression 2.

 

Examples:

3 + %i%

%Numbers[%j%]% - %j% * 2

%i% ^ 2

 

 

Bitwise Operators

 

exp1 and exp2

Results the and operation between the expressions.

exp1 or exp2

Results the or operation between the expressions.

exp1 shr exp2

Results the value of expression 1 right-shifted value of expression 2 times.

exp1 shl exp2

Results the value of expression 1 left-shifted value of expression 2 times.

not exp1

Results the complements the value of expression 1.

 

Examples:

// results 1 if the value of variable %Number% is odd

%Number% and 1

// results the value of variable %Number% divided by 2

%Number% shr 1