RealDocs

UKismetMathLibrary::Greater_IntInt

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

Description

Returns true if integer A is strictly greater than integer B (A > B).

Caveats & Gotchas

  • When used to check health or score thresholds, ensure the variable has not wrapped due to unchecked arithmetic — a negative overflowed value will still compare correctly to 0 but may indicate a bug elsewhere.
  • In C++ prefer a direct `A > B` comparison; this function is the underlying implementation of the Blueprint `>` node for integers.

Signature

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

Parameters

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

Return Type

bool

Example

Checking positive score C++
bool bEligible = UKismetMathLibrary::Greater_IntInt(PlayerScore, 0);

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.