View Single Post
Old 12-05-2022, 05:23 PM   #437
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,506
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Thanks

New quesiton: When checking that a text column value is undefined, is there difference between !$foo and $foo == '', or any reason to prefer one or the other??
They (should) give the same answer. !$foo is a bit faster because it avoids evaluating the value to be compared.

That said, $#foo == '' can be easier to understand, should self documentation be a goal.
chaley is offline   Reply With Quote