SyntaxFix
Write A Post
Hire A Developer
Questions
You should be using the strict not equals comparison operator !== so that if the user inputs "null" then you won't get to the else.
not equals
!==
"null"
else