RealDocs

UKismetStringLibrary::NotEqual_StrStr

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

Description

Tests whether two strings are not exactly equal, including case. The inverse of EqualEqual_StrStr.

Caveats & Gotchas

  • Case-sensitive; use NotEqual_StriStri if case differences shouldn't count as a mismatch.
  • Returns true for any content difference, including whitespace-only differences like trailing spaces.

Signature

static bool NotEqual_StrStr(const FString& A, const FString& B)

Parameters

Name Type Description Default
A const FString& The string to compare against.
B const FString& The string to compare.

Return Type

bool

Example

Reject a non-matching password field C++
if (UKismetStringLibrary::NotEqual_StrStr(EnteredPassword, StoredPassword))
{
    ShowError();
}

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.