nwhistler Posted January 19, 2021 Share Posted January 19, 2021 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
deanishe Posted January 19, 2021 Share Posted January 19, 2021 20 minutes ago, nwhistler said: Is the conditional filter able to do a variable or a different variable then output? Yes. Just put {var:VARNAME} in the field. Link to comment
nwhistler Posted January 19, 2021 Author Share Posted January 19, 2021 (edited) No what I am asking, is {var:1} or {var:2}. I know it can do a variable. What I'd like to know is if I can do like an AND OR statement. Edited January 19, 2021 by nwhistler Link to comment
deanishe Posted January 19, 2021 Share Posted January 19, 2021 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now