UKismetMathLibrary::NotEqual_ByteByte
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns true if byte A does not equal byte B (A != B). This is the Blueprint inequality node for byte variables.
Caveats & Gotchas
- • Same pitfall as EqualEqual_ByteByte: bytes derived from float-to-int conversions may not compare equal even when conceptually they should be.
- • Avoid using as the sole termination condition in a loop over uint8 values — if the target value is never hit due to wrap-around, the loop runs forever.
Signature
static UE_INL_API bool NotEqual_ByteByte(uint8 A, uint8 B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | uint8 | First value. | — |
| B | uint8 | Second value. | — |
Return Type
bool Example
Dirty-flag check C++
bool bChanged = UKismetMathLibrary::NotEqual_ByteByte(NewState, LastKnownState);
if (bChanged) { OnStateChanged(); } Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?