LogicalAnd - Math
F4SE Member of: Math Script
Requires F4SE version 0.2.0 or higher.
Bitwise ANDs arg1 and arg2.
Despite being named "Logical", this function performs a bitwise operation. Ordinary logical operators are available in vanilla Papyrus.
SyntaxEdit
int Function LogicalAnd(int arg1, int arg2) Global Native
ParametersEdit
- arg1: The first value to AND.
- arg2: The second value to AND.
Return ValueEdit
The decimal result of the AND.
ExamplesEdit
int iA = Math.LogicalAnd(0x00205D96, 0x0059E50C) ;iA == 4504
int iC = Math.LogicalAnd(6582, 9258) ;iC == 34