Automator if/then conditional action possible?
I have a database that ought create a certain file in a certain folder every day. Sometimes it fails to create the file and I want to be notified of this failure, preferably by email.
I thought I could use Automator to specify the folder (via the action 'Get Specified Finder Items') and and filter for the failure (via the action 'Filter Finder Items') by 'Date last modified is not in the last 1 days', and then email me (via actions 'New Mail Message' and 'Send Outgoing Messages'). Finally, the workflow would be saved as a Calendar Alarm to run every day in the Calendar app.
However, the email always gets created regardless of whether the date modified is within the last 1 day or not because there is no conditional (eg. if...then...) clause in the workflow to prevent it. The input for the action New Mail Message is any text or file, and, in the absence of such, it still creates the mail but without any appended text or file.
I only want a new Mail message if the folder's 'date last modified' is not in the last 1 day. How is this possible? Simply stopping the workflow, if the condition is not met, would suffice.
(In case it matters: running macOS 10.13.6 High Sierra)
MacBook Pro