UKismetMathLibrary::NotEqual_Int64Int64
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if A is not equal to B. The logical inverse of EqualEqual_Int64Int64.
Caveats & Gotchas
- • Logically equivalent to !EqualEqual_Int64Int64(A, B) — prefer whichever reads more clearly at the call site; avoid double-negation patterns.
- • If used as a sentinel check (e.g., value != -1 meaning valid), document the sentinel value in a named constant rather than a magic number literal to avoid hard-to-find bugs when the sentinel changes.
Signature
static UE_INL_API bool NotEqual_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
Skip invalid handle values C++
const int64 InvalidHandle = -1LL;
int64 Handle = AcquireHandle();
if (UKismetMathLibrary::NotEqual_Int64Int64(Handle, InvalidHandle))
{
UseHandle(Handle);
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?