RealDocs

UKismetMathLibrary::LessEqual_Int64Int64

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

Description

Returns true if A is less than or equal to B. The inclusive counterpart to Less_Int64Int64.

Caveats & Gotchas

  • When using this in Blueprint range checks, prefer InRange_Int64Int64 for readability — it explicitly names the min/max and whether bounds are inclusive.
  • The function is marked BlueprintPure and has no side effects, but it still executes every time the output pin is evaluated in Blueprint; cache the result in a local variable if called many times per frame.

Signature

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

Parameters

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

Return Type

bool

Example

Validate item count does not exceed capacity C++
int64 ItemCount = GetItemCount();
int64 Capacity = GetStorageCapacity();
if (UKismetMathLibrary::LessEqual_Int64Int64(ItemCount, Capacity))
{
    AddItem();
}

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.