Jump to content

Workflow conditional day


Recommended Posts

Depending on the day of the week, I have a different context at work. So when I trigger my workflow with "morning", I want to get a different output depending on the day of the week.

 

Examples

monday to thursday => open URL X

friday => open URL Y

 

On friday I tried the condition "if {date:EEEE} is equal to Friday", but it did not work. Am I missing something?

Screenshot 2020-10-09 at 16.09.39.png

Link to comment

Welcome @sadpotato,

 

When asking for help with a Workflow, please upload it somewhere (transfer.sh is a fast solution without ads; drop your Workflow in the box in the middle) as we can’t properly help you without access to it. Debugging can already be hard with access to the code, and you’re asking us to guess yours from a description. There are multiple places where your code or Workflow setup may be going wrong. Without looking at it we’re shooting in the dark.


Read the Reporting Problems with Workflows topic, as it gives a nice overview on how to build an effective report.

Link to comment
2 hours ago, sadpotato said:

Am I missing something?

 

{date:...} expansions don’t work in that field (only {query} and {var:…})

 

 

Use an Arg & Vars utility to set {query} or a variable to the weekday, then test {query} or the variable in the Conditional.

Edited by deanishe
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...