Bitwise XOR operator (^)

Description:

Performs a bitwise exclusive OR on two numeric expressions.
When one, and only one, digit of the binary representation of both expressions is 1, the corresponding result digit is set to 1, otherwise, the result digit is set to 0:

0101 (expression1)
1100 (expression2)
----
1001 (result)
 

Format:

result = expression1 + expression2;

Parameters:

expression1

An integer expression.

expression2

An integer expression.

Example:

integer i;
integer j;
integer k;

i = 5;
j = 12;
k = i ^ j;
log "k = " + ToString(k);

Output:

k = 9





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap