View Single Post
Old 04-04-2021, 04:28 AM   #23
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
When doing a check_yes_no, I noticed that 1, '', '' and 1, 0, 0 both worked. Is there a difference between 0 and null?
The function checks '1' for 'True'. Anything else is False. Thus
Code:
check_yes_no(#a, 'Klingons', 'rule', 1)
is equivalent to
Code:
check_yes_no(#a, 0, 0, 1)
chaley is offline   Reply With Quote