LogicalXor - Math

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

F4SE Member of: Math Script
Requires F4SE version 0.2.0 or higher.

Bitwise XORs(Exclusive OR) arg1 and arg2.

Despite being named "Logical", this function performs a bitwise operation.

Syntax[edit | edit source]

int Function LogicalXor(int arg1, int arg2) Global Native

Parameters[edit | edit source]

  • arg1: The first value to XOR.
  • arg2: The second value to XOR.

Return Value[edit | edit source]

The decimal result of the XOR.

Examples[edit | edit source]

int iA = Math.LogicalXor(0x000D5296, 0x0002935C) ;iA == 1032650
int iC = Math.LogicalXor(22, 79) ;iC == 89

See Also[edit | edit source]