Table of Contents

Bitwise XOR

Takes an AppleScript list containing 2 values. The values can be numbers, or they can be strings with identifiers telling XTension what kind of values they are. The return is the result of performing a bitwise XOR on the 2 values.

Usage:

bitwisexor (list: 2 values either numbers or text with number format specifiers, see below)
returns number

Number Specifiers

By using these prefixes to the number string this command can work with decimal numbers, binary numbers, hexadecimal numbers even octal numbers.

Examples:

  set myXOrValue to (bitwiseXOr {55, 95})
  
  set myXOrValue to (bitwiseXOr {32, “&h22”})
  
  set myXOrValue to (bitwiseXOr {“&b1101011”, “&o23”})