UKismetMathLibrary::EqualEqual_Int64Int64
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if A is exactly equal to B. Provides exact integer equality with no tolerance or epsilon.
Caveats & Gotchas
- • Unlike float equality checks, integer comparison is exact and has no epsilon issue. However, if either operand was derived from a float-to-int64 conversion, the conversion itself may introduce unexpected values — verify the conversion step rather than the comparison.
- • In Blueprint, ensure both pins are wired to int64 variables. Connecting an int32 pin implicitly promotes via an auto-cast node; the cast is lossless for values within int32 range but can cause confusing node graph behaviour if not intended.
Signature
static UE_INL_API bool EqualEqual_Int64Int64(int64 A, int64 B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | int64 | First value to compare. | — |
| B | int64 | Second value to compare. | — |
Return Type
bool Example
Check for a specific resource ID C++
int64 ResourceID = GetResourceID();
const int64 TargetID = 9876543210LL;
if (UKismetMathLibrary::EqualEqual_Int64Int64(ResourceID, TargetID))
{
ProcessResource();
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?