"Coding the Basic Game Loop" checking the strings are equals

Hello, my name is Fareed Sokkar,
I have a question regarding checking the strings , why did we used the == operator (which usually checks on for regular c++) and not HiddenWord.Equals(Input) - which usually checks on Lexical Level for UE-c++ (FString), and what is the difference between them?!

By default Equals is case sensitive and operator== isn’t.
Given

FString A;
FString B;

The following are equivalent

A == B;
A.Equals(B, ESearchCase::IgnoreCase);

You can’t change operator== to be case senstive.

1 Like

Thank you so much for explaining, this is very helpful!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms