Operators

Bitwise

OR (|)

Binary OR Operator copies a bit if it exists in either operand.

 

{ }
[{"data":{"type":"library","step":"60 | 13","call":"operators.bitwise.|","args":{"item1":60,"item2":13},"data_to_var":"result","maxpaths":1,"uuid":"f94d5d78ee92c714f7995c56169b74be","x":489,"y":239,"width":120,"height":32,"operators":"operators","operators.bitwise.|":"|"},"paths":[]}]

Example Response

{"result":61}

XOR (^)

Binary XOR Operator copies the bit if it is set in one operand but not both.

 

{ }
[{"data":{"type":"library","step":"60 ^ 13","call":"operators.bitwise.^","args":{"item1":60,"item2":13},"data_to_var":"result","maxpaths":1,"uuid":"f94d5d78ee92c714f7995c56169b74be","x":489,"y":239,"width":120,"height":32,"operators":"operators","operators.bitwise.^":"^"},"paths":[]}]

Example Response

{"result":49}

AND (&)

Binary AND Operator copies a bit to the result if it exists in both operands.

 

{ }
[{"data":{"type":"library","step":"60 & 13","call":"operators.bitwise.&","args":{"item1":60,"item2":13},"data_to_var":"result","maxpaths":1,"uuid":"f94d5d78ee92c714f7995c56169b74be","x":489,"y":239,"width":120,"height":32,"operators":"operators","operators.bitwise.&":"&"},"paths":[]}]

Example Response

{"result":12}

Left Shift (<<)

Binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand.

 

{ }
[{"data":{"type":"library","step":"60 << 2","call":"operators.bitwise.<<","args":{"item1":60,"item2":2},"data_to_var":"result","maxpaths":1,"uuid":"f94d5d78ee92c714f7995c56169b74be","x":489,"y":239,"width":120,"height":32,"operators":"operators","operators.bitwise.<<":"<<"},"paths":[]}]

Example Response

{"result":240}

Right Shift (>>)

Binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand .

 

{ }
[{"data":{"type":"library","step":"60 >> 2","call":"operators.assignment.>>","args":{"item1":60,"item2":2},"data_to_var":"result","maxpaths":1,"uuid":"f94d5d78ee92c714f7995c56169b74be","x":489,"y":239,"width":120,"height":32,"operators":"operators","operators.assignment.>>":">>"},"paths":[]}]

Example Response

{"result":15}

Invert Bits (~)

Binary Invert Bits Operator. The left operands value is moved right by the number of bits specified by the right operand .

 

{ }
[{"data":{"type":"library","step":"~60","call":"operators.assignment.~","args":{"item":60},"data_to_var":"result","maxpaths":1,"uuid":"f94d5d78ee92c714f7995c56169b74be","x":489,"y":239,"width":120,"height":32,"operators":"operators","operators.assignment.~":"~"},"paths":[]}]

Example Response

{"result":-61}