UKismetMathLibrary::Greater_Int64Int64
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if A is strictly greater than B. Exposes the int64 greater-than comparison to Blueprint as a pure node.
Caveats & Gotchas
- • Does not account for overflow: if A was computed from arithmetic that wrapped around, the result may be a very large negative number that incorrectly compares as less than B.
- • In C++ you can use the operator directly (A > B); this function is primarily useful when passing the comparison as a Blueprint delegate or when working in generic template code that expects a UFUNCTION pointer.
Signature
static UE_INL_API bool Greater_Int64Int64(int64 A, int64 B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | int64 | Left-hand operand. | — |
| B | int64 | Right-hand operand. | — |
Return Type
bool Example
Check if score exceeds a threshold C++
int64 PlayerScore = GetPlayerScore();
if (UKismetMathLibrary::Greater_Int64Int64(PlayerScore, 1000000000LL))
{
UnlockHighScoreBadge();
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?