Background for Fallout 4
Member of the Math script
intfunctionLogicalXor(intarg1, intarg2)NativeGlobal

Description

Wiki Description

Bitwise XORs(Exclusive OR) arg1 and arg2.

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


Caveats


Parameters

intarg1

CK Wiki Description

The first value to XOR.

intarg2

CK Wiki Description

The second value to XOR.


Examples

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

Auto-Generated Example

int myInt__arg1
int myInt__arg2

int returnedValue = Math.LogicalXor(myInt__arg1, myInt__arg2)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.