Quote:
Originally Posted by ownedbycats
I noticed this displays 'none' for an undefined.
|
It doesn't for me. The 'none' value gets turned into zero for arithmetic comparisons so you should see only numbers in the 'then' clause.
But after the 'if' the variable 'x' will contain 'none'. If you don't want that then use
Code:
x = raw_field(#myint', 0)