RealDocs

UKismetMathLibrary::NotEqual_NameName

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

Description

Returns true if FName A is not equal to FName B. Complements EqualEqual_NameName with the same fast integer-index comparison.

Caveats & Gotchas

  • As with EqualEqual_NameName, comparison is case-insensitive — `FName("Foo") != FName("foo")` evaluates to false.
  • In C++, the `!=` operator on FName is equally fast and more idiomatic; this function exists mainly for Blueprint visual scripting.

Signature

static UE_INL_API bool NotEqual_NameName(FName A, FName B)

Parameters

Name Type Description Default
A FName First name to compare.
B FName Second name to compare.

Return Type

bool

Example

Skip bone if it's the root C++
for (FName BoneName : BoneNames)
{
    if (UKismetMathLibrary::NotEqual_NameName(BoneName, FName("root")))
    {
        ProcessBone(BoneName);
    }
}

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.