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 post

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 post
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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...