RealDocs

UKismetMathLibrary::EqualEqual_BoolBool

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

Description

Returns true if both boolean values are equal (both true or both false). This is the Blueprint-exposed '==' operator for booleans, displayed as 'Equal (Boolean)' in the node palette.

Caveats & Gotchas

  • This is equivalent to XNOR logic — it returns true when both inputs are the same. Do not confuse with AND, which only returns true when both inputs are true.
  • In C++ prefer the built-in '==' operator; this function mainly exists so Blueprint graphs can compare two boolean wires with a standard equality node.

Signature

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

Parameters

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

Return Type

bool

Example

Check if two flags match C++
bool bResult = UKismetMathLibrary::EqualEqual_BoolBool(bPlayerReady, bEnemyReady);
// true when both are ready or both are not ready

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.