© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•12mo ago•
25 replies
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ If statement.
C#CC# / help
4y ago
P/Invoke boolean call always returns true in Release builds
C#CC# / help
2y ago
✅ if statement help
C#CC# / help
2y ago