UKismetMathLibrary::NotEqual_IntInt
#include "Kismet/KismetMathLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns true if A is not equal to B (A != B). Exposed as the '!= (Integer)' node in Blueprints.
Caveats & Gotchas
- • Like EqualEqual_IntInt, this is an exact comparison with no tolerance — use the float variants (NotEqual_FloatFloat with tolerance) if your values have been through floating-point arithmetic.
- • In C++ the built-in != operator is preferred; this wrapper exists for Blueprint parity.
Signature
static UE_INL_API bool NotEqual_IntInt(int32 A, int32 B); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| A | int32 | Left-hand operand. | — |
| B | int32 | Right-hand operand. | — |
Return Type
bool Example
Skip default state C++
if (UKismetMathLibrary::NotEqual_IntInt(CurrentState, DefaultState))
{
HandleStateChange(CurrentState);
} See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?