Conditionals based on variables/values in Automations
complete
bmillman22
Similar to https://www.taskade.com/feedback/feature-requests/p/basic-arithmetic-within-automations-without-using-ask-ai we need a way to logically validate variables against values including the use of < and > , this is very iffy with AI as it often hallucinates. Example: I have a value stored in a variable that is pulled from (wherever) a website and I need to know is that value between one of 4 ranges of values. If I use AI it will tell me many times that the value is in a range that it isn't. Actually this is a lookup table (IF Variable is in Range A then output Low risk, if in Range B then Medium risk etc)
Example: (it could be natural language like example here or could be more like a < and > logic).
MyRisk is a variable from a prior step.
MyRisk is within RangeA = Low Risk
MyRisk is within RangeB = Medium Risk
MyRisk is within RangeC = High Risk
Recommend Automations > Utilities > Conditionals or add it in some other way as you prefer.
Log In

John at Taskade
updated the status to
complete
Done!
This automation improvement is now live.We've been shipping fast on automations — new triggers, smarter scheduling, and deeper integrations. Your feedback drove this.
Build your first automation:
- Generate workflows with AI — describe what you need, Genesis builds it
- Clone automation templates — ready-to-use flows you can customize
Narek Zograbian
Hi there! This already exists with Branches and Filter no? You can combine comparators (and, or) and use multiple types of comparisons (contains, does not contain, etc.)
bmillman22
Narek Zograbian possibly but it is a lot of work for little gain especially when the only difference will be the output of each branch simply changes the text displayed to one of those results (like "Low Risk) from one of the 4+ possible outcomes (actually it becomes worse as the number of possible outcomes increase)
*** This maybe the biggest challenge here >>>> I mocked this up and I am still struggling at the step where I am matching a range of values when the condition options are "Exactly matches" a value.. I need a range of values.. selecting exactly matches 0 AND exactly matches 1... through 20 for 1 of every branch isn't viable.
Example mapped more:
If
MyRisk is within RangeA = Low Risk then output "Low Risk"
MyRisk is within RangeB = Medium Risk output "Medium Risk"
MyRisk is within RangeC = High Risk output "High Risk"
MyRisk is within RangeD = Critical Risk output "Critical Risk"
MyRisk is within RangeE = Emergency Risk output "Go to Emergency room now!"
Where output could be 1 step e.g. adding a task, returning a variable etc
So that is 5 branches where the next step is simply assigning a variable / updating a task with that.
(As further context it is an expansion of the Run Command Template I created for Discord)
Maybe I need to think this through more...