Quote:
Originally Posted by ownedbycats
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)