Jump to content

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


Recommended Posts

Posted

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

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

Posted

@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!

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