RealDocs

UKismetMathLibrary::BooleanOR

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

Description

Returns true if at least one of A or B is true (logical OR). In Blueprints this is the 'OR Boolean' node, which also supports multiple inputs via CommutativeAssociativeBinaryOperator.

Caveats & Gotchas

  • Blueprint OR nodes do not short-circuit — both pins are fully evaluated before the output is produced. This differs from C++ '||' which stops evaluating after the first true operand. Avoid attaching function calls with side effects to OR inputs when using Blueprints.
  • The CommutativeAssociativeBinaryOperator meta causes the Blueprint editor to merge chained OR nodes into a single multi-pin node visually, but the evaluation order is not guaranteed.

Signature

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

Parameters

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

Return Type

bool

Example

Allow interaction if either trigger is active C++
bool bTriggered = UKismetMathLibrary::BooleanOR(bButtonPressed, bProximityTriggered);

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.