Difference between revisions of "LogicalOr - Math"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(Added F4SE member)
 
imported>Qazaaq
(added required f4se version)
 
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:F4SE]]
'''F4SE Member of:''' [[Math Script]]
'''F4SE Member of:''' [[Math Script]]
{{Template:Papyrus:RequiredF4SE|version=0.2.0}}


Bitwise ORs arg1 and arg2.
Bitwise ORs arg1 and arg2.
Line 29: Line 27:
== See Also ==
== See Also ==
*[[Math Script]]
*[[Math Script]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:F4SE]]

Latest revision as of 17:44, 21 January 2018

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

Bitwise ORs arg1 and arg2.

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

Syntax[edit | edit source]

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

Parameters[edit | edit source]

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

Return Value[edit | edit source]

The decimal result of the OR.

Examples[edit | edit source]

int iA = Math.LogicalOr(0x000245D9, 0x000E524C) ;iA == 939997
int iC = Math.LogicalOr(212, 39) ;iC == 247

See Also[edit | edit source]