View Single Post
Old 12-16-2020, 07:41 AM   #100
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,013
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
I would like to calculate a value and then use it in a action chain.

Specifically, I want to check which of two devices is connected (I know how to do that), and then either search for books with a (device specific) tag along with other search parameters, or pick a specific premade search (depending on which device), and remove the tag, along with other device non-specific actions on the same set of books.

If I could branch within the chain, that would make this easy, but it would be easier if I could pick a search or use a calculated constant...

Is there a way to do this currently? (or could it be added?)

Edit: I think I figured out how to do it (untested yet) by just prefixing the chain with a search that will come up empty on the wrong device and then duplicating the chain for each device. But it would be more elegant if I could use a calculated value.

Last edited by compurandom; 12-16-2020 at 08:15 AM.
compurandom is offline   Reply With Quote