Jump to content

Find & replace: error checking for failed find


Recommended Posts

Using @Andrew's workflow from this post I discovered that find and replace appears to be case sensitive (which is fine). However, in a workflow I'd need to warn a user if the find word was not found (because of a case error, for example). I've tried a Conditional to match {var:find} to ' ' or to false but nothing seems to pick up the error. How can I trap it, please? (RegEx seems a little bit of a challenge in that context.)

 

Stephen

Link to comment

Sorry Vitor, I am clearly being obtuse, but I can't get that to work anywhere in Andrew's workflow—either when added after storing {var:find} or (which seems less logical, because by then {query} is entirely different, after storing {var:replace}). It just seemed to me that in that workflow I had to match {var:find} to something. The only place I can match it to the initial input ("{query}") is after storing {var:find} and by passing {query} through to the conditional . Am I doing something stupid (quite possible!)?

 

Stephen

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