🧡 Skip to main content🔍 Skip to search
If

Automation Workshop includes the If Action that allows conditional branching in a Task. Depending on whether or not the specified conditions are met, the Task may continue with one set of Actions or another. Typically a variable is compared against a fixed value or another variable.

Features & highlights

  • Allows comparing predefined conditions to decide the further course of action that the scheduled Task takes.
  • Supports the following conditions—equal, greater, less, starts with, ends with, contains, longer, shorter, empty, contains only these characters, and even more comparison options.
  • Allows the comparison of two sets of variables joined with either a logical AND or a logical OR.
  • Evaluate data using regular expressions to take a proactive approach to system management.
  • Decisions can be based on data that are dynamically retrieved from Triggers and Actions.
  • To differentiate a workflow when the condition is not met, use the Else Action. It performs an alternative flow—another subset of Actions.
YouTube video · Conditional logic using If…Else flow

Usage examples

  • Using the If Action, determine if today's date is odd or even. On odd days, backup server files to the Amazon S3 Cloud Storage, and on even days, upload to Google Cloud Storage.
  • If a file name begins with the word report, send an email as an important reminder.
  • Use the If Action to check or validate different pieces of file information.
  • Alter the control flow based on a filename, file count, file size, the domain part of an email address, or anything else you can imagine.
  • Verify values for matching. Conditionally execute different sets of Actions.
  • List .xlsx files in a folder. If the number of files is greater than 10, then send them as attachments in a single compressed archive.
  • Validate user input—credit card numbers, date/time formats, and email addresses using the built-in regular expression comparison option: Contains regular expression.

Documentation

  • Compare · Define the criteria to determine if a condition is true or false.
  • Options · Choose between data comparison formats. The default is Auto detect.

Interconnect

Quick access

To streamline your workflow creation, you can locate the If Action throughout Automation Workshop's search tools—including the knowledge base, menu, and Add Action feature—using the quick ยซ?ยป shortcut.

More comparisons…

Automation Workshop offers specialized Actions tailored to various resources. Each of them features an intuitive interface designed for a specific resource type. Explore more comparison options:

Branching alternatives…

While If–then logic is the most widely used approach to split a Task into two execution paths, there are additional methods to branch an automated workflow · Action flow explained

Discover

Automation Workshop includes many additional Triggers and numerous Actions to help automate repetitive computer or business tasks using state-of-the-art GUI tools.

Automated Trigger · File & Folder Watcher
File & Folder Watcher
Automate Action · Run CMD command
Run CMD command

How automation works? A 90-second journey.

Still have a question?

If you have any questions, please do not hesitate to contact our support team.