🧡 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 · Synchronize SFTP server files & documents

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

  • If integration—Variables (manipulate data dynamically within a workflow) and Events (recorded entries that detail the activity within the system).
  • Effortlessly streamline your automation processes by visually connecting your workflow using Variable Wizard—a powerful tool to access all 1,000+ variables—system, network, Triggers, Actions, globals, web, and much more…

Quick access

To streamline your workflow creation, you can locate the If Action throughout the entire Automation suite'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 more awesome Triggers and numerous Actions to aid you to automate any repetitive computer or business task by providing state-of-the-art GUI tools.

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

Seamless automation. Your 90-second guided tour.

Still have a question?

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