View Single Post
Old 04-10-2021, 10:56 AM   #504
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,203
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Your understanding of the concept of book_vars is fine. The problem is with your understanding of Conditions. The condition does not work per book, it works per action. So if the condition is True, the action will run for all selected books. If the condition is False the action will not run at all.

Since the condition does not iterate over all books, It only fetches one metadata object (active index in case of multiple selections). This explains what happened when you selected only one. (conditions in case of multiple selections are meant to be used for general things like selection_count, connected_device_name, current_library_name .... etc)

I am not sure whether the above is explained clearly. Anyway, to achieve what you want, the solution is to store the ids for books that should be processed in step 2. Attached below is a zip with a modified chain that should achieve this. It uses the scopes feature.
Attached Files
File Type: zip Modified Test.zip (722 Bytes, 584 views)

Last edited by capink; 04-10-2021 at 11:00 AM.
capink is offline   Reply With Quote