Skip to content

Bitwise: (operand) (operator) (operand)

Jaume Olivé Petrus edited this page Oct 29, 2017 · 1 revision

This block is a Bitwise block, an Operator block, and a Reporter block that reports the value of the expression resulting to applying the specified operator to the specified operands. The operands must be numbers.

This block can take the following operators:

  • &: Binary AND Operator copies a bit to the result if it exists in both operands.
  • |: Binary OR Operator copies a bit if it exists in either operand.
  • >>: Binary Right Shift Operator. The left operands value is moved right by the number of bits specified by the right operand.
  • <<: Binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand.

Shape

Clone this wiki locally