View Single Post
Old 10-18-2023, 06:18 PM   #657
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,501
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Code:
program:

dates = list_count($#readdates, ',');

readcount = $$#timesread;

if dates != readcount then 'yes' fi
When both #readdates (tag-like) and timesread (integer) are undefined, this returns 'yes.' Why?
Because the string '0' (zero, list_count()) doesn't equal the string 'none' (raw_field()). If you used !=# then IIRC zero would equal none.
chaley is offline   Reply With Quote