View Single Post
Old 03-31-2021, 06:17 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
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)
chaley is offline   Reply With Quote