Jump to content

Conditional Filter if query is equal to variable or a different variable


Recommended Posts

Is the conditional filter able to do a variable or a different variable then output? I am building a zoom workflow and I've set the rooms I typically connect to as variables. It then makes sure zoom is open, opens the url with the variable and then eventually closes that browser window.

 

But I want to take it a setup further and have it copy the password also set in a variable to the clipboard based on the room number and a lot of our rooms use the same password. So I am hoping to use a conditional filter so that if it's {var:1} or {var:2} or {var:3} output to this label.

 

Is that possible or am I going to have to do this with regex (which I am not super friends with)?

Link to comment
35 minutes ago, nwhistler said:

What I'd like to know is if I can do like an AND OR statement.

 

Right, got you.

 

No, it can’t. Depending on your variable values, you might be able to OR them by inserting them into a regex, e.g. if {var:input} matches regex ({var:one}|{var:two}).


Or handle the logic in a script using proper if or switch clauses.

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