RealDocs

UKismetMathLibrary::EqualEqual_IntInt

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

Description

Returns true if A is equal to B (A == B). Exposed as the '== (Integer)' node in Blueprints.

Caveats & Gotchas

  • Integer equality is exact — there is no tolerance parameter unlike floating-point comparisons. If you store game state as float and cast to int before comparing, rounding errors can cause unexpected inequality.
  • In C++ prefer the built-in == operator; this wrapper exists primarily to provide the Blueprint node and should not be called in performance-critical C++ loops.

Signature

static UE_INL_API bool EqualEqual_IntInt(int32 A, int32 B);

Parameters

Name Type Description Default
A int32 Left-hand operand.
B int32 Right-hand operand.

Return Type

bool

Example

Check a specific combo index C++
if (UKismetMathLibrary::EqualEqual_IntInt(ComboIndex, 3))
{
    PlayFinisherAnimation();
}

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.