View Single Post
Old 02-23-2023, 03:04 PM   #1027
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,171
Karma: 77304081
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by capink View Post
Right after the first action, insert a new "Chain Varibales" Action that defines a variable called do_continue with the following template:

Code:
program:
	start = format_date(globals(_previous_action_start_time), 'to_number');
	lm = format_date(last_modified(), 'to_number');
	if lm ># start then 'yes' else 'no' fi
After that set a condition on the last two actions as follows:

Code:
template = program: globals(do_continue)
datatype = text
comparison = "="
condition value = yes
Edit: The above assumes the first two actions are tied together. If there is a chance you are going to cancel first action but proceed with the second, you have to repeat the chain variables step after the second action.
This works, thanks.

I have "add purchase information" as a chain, but also use chain caller to run it as part of my general cleanup chain. However, not all books need purchase information (public domain, game manuals, etc), or sometimes I run it after adding the info so skipping the last two steps saves a bit of time.

Last edited by ownedbycats; 02-23-2023 at 03:16 PM.
ownedbycats is online now   Reply With Quote