Your code works as expected. You are getting the same result with FName.Compare and the == operator. The Compare function returns an int not a bool and it returns 0 if the two FNames are equal which implicitly converts to false.
Your code works as expected. You are getting the same result with FName.Compare and the == operator. The Compare function returns an int not a bool and it returns 0 if the two FNames are equal which implicitly converts to false.