View Single Post
Old 02-06-2023, 11:09 PM   #505
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,529
Karma: 8075938
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Thanks

Also, another question:

For the user category question, I wanted specifically to find #fanficcat entries that are not assigned under Fanfiction.Fandoms.[subcategory]. Is what I came up with the best option for that? (If there's multiple entries, having one of them in the category but others not will make it not return a value.)
If#fanficcat is a single value then the most accurate method would be to check whether the full value is in the list. Something like
Code:
if ! '(^Fanfiction.Fandoms.' & #fanficcat & '$' ) inlist user_categories() then ...
If it is multivalued then either a loop or 2 lists and list_difference() would work.
chaley is offline   Reply With Quote