View Single Post
Old 08-28-2024, 05:35 AM   #708
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,500
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Every book that matches unread and readgoal returns 'To Be Read', not just the ones with non-null dates. What did I do wrong?
A raw field reference returns the string None if the field is not defined. Use either
Code:
if readgoal in $#admintags && $$#lastread != 'None' then 'To Be Read'
or
Code:
if readgoal in $#admintags && raw_field('#lastread', '') then 'To Be Read'
chaley is offline   Reply With Quote