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

Description

Wiki Description

Bitwise ANDs arg1 and arg2.

Despite being named "Logical", this function performs a bitwise operation. Ordinary logical operators are available in vanilla Papyrus.


Caveats


Parameters

intarg1

CK Wiki Description

The first value to AND.

intarg2

CK Wiki Description

The second value to AND.


Examples

int iA = Math.LogicalAnd(0x00205D96, 0x0059E50C) ;iA == 4504
int iC = Math.LogicalAnd(6582, 9258) ;iC == 34

Auto-Generated Example

int myInt__arg1
int myInt__arg2

int returnedValue = Math.LogicalAnd(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.