RealDocs

UKismetMathLibrary::GreaterEqual_Int64Int64

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

Description

Returns true if A is greater than or equal to B. The inclusive counterpart to Greater_Int64Int64.

Caveats & Gotchas

  • A common mistake is using this for minimum-threshold checks after an operation that can produce INT64_MIN — a value of INT64_MIN will satisfy A >= INT64_MIN trivially, which may hide underflow bugs.
  • When the check is logically part of a range (min <= value <= max), use InRange_Int64Int64 instead to keep intent clear and avoid a pair of separate comparison nodes.

Signature

static UE_INL_API bool GreaterEqual_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 a timestamp has elapsed C++
int64 CurrentTick = FDateTime::UtcNow().GetTicks();
int64 DeadlineTick = GetDeadlineTicks();
if (UKismetMathLibrary::GreaterEqual_Int64Int64(CurrentTick, DeadlineTick))
{
    TriggerTimeout();
}

Tags

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.