UKismetMathLibrary::GreaterEqual_ByteByte
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if byte A is greater than or equal to byte B (A >= B).
Caveats & Gotchas
- • `GreaterEqual_ByteByte(X, 0)` is always true for any X because uint8 cannot be negative — logic that hinges on this check is a no-op.
- • Prefer `!Less_ByteByte(A, B)` only when readability demands it; the direct `A >= B` C++ form is cleaner in non-Blueprint code.
Signature
static UE_INL_API bool GreaterEqual_ByteByte(uint8 A, uint8 B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | uint8 | Left-hand operand. | — |
| B | uint8 | Right-hand operand. | — |
Return Type
bool Example
Checking sufficient resources C++
bool bCanCraft = UKismetMathLibrary::GreaterEqual_ByteByte(MaterialCount, RecipeCost); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?