RealDocs

UKismetTextLibrary::NotEqual_TextText

function Engine Blueprint Since unknown
#include "Kismet/KismetTextLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Returns true if A and B are linguistically not equal. Backs the '!=' compact node for FText in Blueprint.

Caveats & Gotchas

  • Comparison is case-sensitive — use NotEqual_IgnoreCase_TextText if case shouldn't matter.
  • This is simply the logical negation of EqualEqual_TextText, so the same locale-dependent comparison caveats apply.

Signature

static bool NotEqual_TextText(const FText& A, const FText& B);

Parameters

Name Type Description Default
A const FText& First text value to compare.
B const FText& Second text value to compare.

Return Type

bool

Example

Detect a changed text value C++
if (UKismetTextLibrary::NotEqual_TextText(CachedLabel, NewLabel))
{
    CachedLabel = NewLabel;
    LabelWidget->SetText(NewLabel);
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.