RealDocs

UKismetMathLibrary::Less_Int64Int64

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

Description

Returns true if A is strictly less than B. Exposes the int64 less-than comparison to Blueprint as a pure node.

Caveats & Gotchas

  • int64 is a signed type; comparing values near INT64_MIN or INT64_MAX after arithmetic that wraps will produce unexpected results — validate input ranges if the values come from untrusted sources.
  • Blueprint does not automatically promote int32 pins to int64; connect an explicit conversion node (IntToInt64) when mixing integer types to avoid silent truncation of the comparison operands.

Signature

static UE_INL_API bool Less_Int64Int64(int64 A, int64 B);

Parameters

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

Return Type

bool

Example

Guard against index overflow C++
int64 Counter = GetLargeCounter();
if (UKismetMathLibrary::Less_Int64Int64(Counter, INT64_MAX))
{
    Counter++;
}

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.