Honestly sswift thats why we used to say "If X" ment "does x exist"
This was when this whole NULL thing didnt exist. Either the variable had a value or it didnt, and a newlycreated variable had a value of 0.
We were wrong to call it this, but it ment that we never got mixed-up, and is the reason we dont even see it as a problem doing it this way
The thing is what is it you want to mean by False/True
Because after all even 0 is a true value
Maybe if x=NAN (ie if x is a non numerical value)
But then when would you use this? When X was NULL? so Maybe
If x=NULL?
This was when this whole NULL thing didnt exist. Either the variable had a value or it didnt, and a newlycreated variable had a value of 0.
We were wrong to call it this, but it ment that we never got mixed-up, and is the reason we dont even see it as a problem doing it this way
The thing is what is it you want to mean by False/True
Because after all even 0 is a true value
Maybe if x=NAN (ie if x is a non numerical value)
But then when would you use this? When X was NULL? so Maybe
If x=NULL?