RealDocs

UKismetMathLibrary::BooleanNOR

function Engine Blueprint Since 4.0
#include "Kismet/KismetMathLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Returns true only when both A and B are false (logical NOT OR). Useful for conditions that should only proceed when all flags are inactive.

Caveats & Gotchas

  • NOR is equivalent to NOT (A OR B) — it is true only in the single case where both inputs are false. Do not confuse with NAND, which is false only when both inputs are true.
  • Like other Blueprint boolean operators, NOR does not short-circuit — both inputs are evaluated before the result is produced.

Signature

static UE_INL_API bool BooleanNOR(bool A, bool B);

Parameters

Name Type Description Default
A bool First boolean operand.
B bool Second boolean operand.

Return Type

bool

Example

Proceed only when no alerts are active C++
bool bAllClear = UKismetMathLibrary::BooleanNOR(bFireAlarm, bSecurityAlarm);
if (bAllClear)
{
    OpenDoor();
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.