View Single Post
Old 02-27-2023, 11:53 AM   #2852
isarl
Addict
isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.
 
Posts: 293
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
Quote:
Originally Posted by Katja_hbg View Post
How to combine
list_join(':@:', list_difference($#readingpool, tags_to_ignore, ','), ',')
list_join(':@:', list_difference($tags, tags_to_ignore, ','), ',')

list_join takes an arbitrary number of lists to join, so simply add the second list_difference() function call as another argument to the first list_join. Like this:

Code:
   list_join(':@:',
        list_difference($#readingpool, tags_to_ignore, ','), ',',
        list_difference($tags, tags_to_ignore, ','), ',')
If you wanted to do another column as well then you could expand it further. For example:

Code:
   list_join(':@:',
        list_difference($#readingpool, tags_to_ignore, ','), ',',
        list_difference($tags, tags_to_ignore, ','), ',',
        list_difference($#othercolumn, tags_to_ignore, ',')
Obviously(?) you can do whatever processing you like, it doesn't have to be a call to list_difference. You'll notice that these examples look very similar to chaley's above, where the #genre and #collections columns are used as-is (they are not wrapped in a call to the list_difference function). But if you are trying to remove the same tags from each list then the above works great!

Last edited by isarl; 02-27-2023 at 12:57 PM. Reason: call more attention to the similarities between this answer and chaley's, above
isarl is offline   Reply With Quote