RealDocs

UKismetMathLibrary::GreaterEqual_IntInt

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

Description

Returns true if A is greater than or equal to B (A >= B). Exposed as the >= integer comparison node in Blueprints.

Caveats & Gotchas

  • Both operands are plain int32; there is no overflow protection — comparing very large or very small values near INT_MIN/INT_MAX behaves identically to the C++ operator.
  • In Blueprint, this appears as the compact '>=' node. In C++ you almost never call this directly; use the built-in operator instead to avoid the function call overhead.

Signature

static UE_INL_API bool GreaterEqual_IntInt(int32 A, int32 B);

Parameters

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

Return Type

bool

Example

Guard a health threshold C++
if (UKismetMathLibrary::GreaterEqual_IntInt(CurrentAmmo, MinAmmoToFire))
{
    FireWeapon();
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.