Jump to content
Yaz

Conditional that evaluates the presence/absence of an argument (selection in macOS)

Recommended Posts

I am trying to make a workflow that opens Youtube (https://www.youtube.com/feed/trending?gl=US) if no argument is passed and searches YouTube if an argument (selection in macOS is passed). I tried using the conditional utility but it seems that a value (not zero) is passed when there is no argument. I tried debugging to see what value is given when no argument is passed, but it only shows "" in the debugger. What am I doing wrong? Or is there another workaround? Thanks

Share this post


Link to post
9 hours ago, Yaz said:

What am I doing wrong?

 

We can't tell you what's wrong with a workflow we've never seen.

 

Please upload the workflow somewhere and provide a link.

Share this post


Link to post

@deanishe My bad. I just figured it out but I will share the workflow in case anyone would find it useful (the replace empty input utility solved my issue).
https://ufile.io/7uilohmi

Thanks again deanishe!

Share this post


Link to post

That shouldn't be necessary. I just removed your Replace utility, configured the workflow as follows, and it works as it should.

 

image.png.17b0985878771d50ffe3f0a4146c00bc.png

Share this post


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