Jump to content
Macro Express Forums

searching for specific string in entire array


Recommended Posts

I want to search an entire array for a specific string, is macroexpress pro capable of this? Something similar to the "in" operator in python. My current logic is : If Variable %locations[]% Contains "N50"... I'd prefer to not make a counter for each array position if possible. Suggestions welcome.

Link to comment
Share on other sites

Nope. The only way is to repeat with a counter and evaluate each element.

 

If you don't need to know where in the array you can always join the array into one var and do an "If Contains". I do that sometimes with smaller arrays.

Link to comment
Share on other sites

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.

Loading...
×
×
  • Create New...