Is this a If statement bug?

So your telling me that this




if (SomeMatinee->MatineeControllerName.Compare("FLWeather")) { // NOT equal }// this code works, it is not a zero 0=false.  if it is false or 0. I could not get into it.


Then how do i get into it then? if a if is false. it does not let you in and i get into that with that code. So it is not returning a 0 it has to be a 1 or i would not be getting into it.

If the if was working right, whether it is a true or a 1. Then why does this not return right value. None of these work and if the if worked right i would be able to get into all 3 of those but it will not let you into them. All 3 of those should give a true or a 1. Not a false or a 0



//SomeMatinee->MatineeControllerName is "FLWeather"
if (SomeMatinee->MatineeControllerName == "FLWeather")//if the if worked right like it should i would be getting into this, but i do not get thru as its a 0 or a false. they match

void AWeatherSystem::BeginPlay() { FName WeatherName = "FLWeather"; if (SomeMatinee->MatineeControllerName == WeatherName) }


if (SomeMatinee->MatineeControllerName == FName(TEXT("FLWeather")


I will log all this and figure it out. Makes no ■■■■ sense, lets return a 0 for compare, if it compares, wtf? When did 0 become a true or a 1? Whos genius idea was that; shakes head.