C#C
C#11mo ago
merlo17

if statement always returns true

So I have an if statement to check if a value in another script is null or not. However it always returns true, even when I know it is not null. Since this value is necessary for what comes after that if statement when it returns false, I can't gut it, and when I do, the rest of the script fails because the value is apparently null to the script checking for the value.

Screenshot 1: the if statement
Screenshot 2: Where the value is and highlighted is where it is getting set
image.png
image.png
Was this page helpful?