🧡 Skip to main content🔍 Skip to search

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 or another set of Actions. Typically a variable is compared against some fixed value or another variable using Variable Wizard.

Jump to…

YouTube video · Conditional logic using If…Else flow

Note

All examples below uses Auto detect comparing option which intelligently recognizes the provided data format be it number or text with ignoring case setting.

is equal

If Compare Value Result
Automate Is equal automate true
Automate Is equal automating false
Automate Is not equal automation true
Automate Is not equal automate false

is greater than

If Compare Value Result
abc Is greater than abb true
96 Is greater than 100 false
1000 Is not greater than 1024 true
B Is not greater than A false

is greater than or equal to

If Compare Value Result
1001 Is greater than or equal to 999 true
100 Is greater than or equal to 1000 false
inv-0021.pdf Is not greater than and is not equal to inv-0023.pdf true
Document-100 Is not greater than and is not equal to Document-090 false

is less than

If Compare Value Result
64 Is less than 2000 true
B Is less than A false
i2021.docx Is not less than i2020.docx true
350 Is not less than 500 false

is less than or equal to

If Compare Value Result
500 Is less than or equal to 1000 true
-200 Is less than or equal to -250 false
docu-200 Is not less than and is not equal to docu-150 true
2000 Is not less than and is not equal to 2000 false

starts with

If Compare Value Result
Automate Starts with auto true
Automate Starts with tom false
Automate Does not starts with autos true
Automate Does not starts with Auto false

contains

If Compare Value Result
Automate Contains tom true
Automate Contains Backup false
Automate Does not contain Y true
Automate Does not contain M false

ends with

If Compare Value Result
Automate Ends with mate true
Automate Ends with mat false
Automate Does not ends with auto true
Automate Does not ends with ate false

is longer than

If Compare Value Result
Automate Is longer than 5 true
Automate Is longer than 10 false
Automate Is not longer than 100 true
Automate Is not longer than 7 false

length is equal to

If Compare Value Result
Automate Length is equal to 8 true
SFTP Length is equal to 5 false
Folder Length is not equal to 9 true
Real-time Length is not equal to 9 false

is shorter than

If Compare Value Result
Text Is shorter than 5 true
Data Is shorter than 4 false
Automate Is not shorter than 7 true
Task Is not shorter than 10 false

is empty

If Compare Value Result
None Is empty - true
Doc-2021.docx Is empty - false
123 Is not empty - true
None Is not empty - false

matches regular expression

If Compare Value Result
b7355 Matches regular expression [a-z]\d\d\d\d true
7355b Matches regular expression [a-z]\d\d\d\d false
mail@gmail.us Does not match regular expression .*@gmail.com true
mail@gmail.com Does not match regular expression .*@gmail.com false

contains regular expression

If Compare Value Result
On "2020-1-17" Contains regular expression \d{4}-\d+-\d+ true
On "1-17-2020" Contains regular expression \d{4}-\d+-\d+ false
Sum $99.00 Does not contain regular expression [€£¥]\d+ true
Sum €89.00 Does not contain regular expression [€£¥]\d+ false

contain only these characters

If Compare Value Result
A417 Contain only these characters 0123456789AB true
127-B Contain only these characters 12345-ABC false
c:\file.txt Does not contain any of these characters "/?*<>| true
User@John Does not contain any of these characters !#@_ false

More compare…

Questions?

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