aaron_e Posted June 16, 2011 Report Share Posted June 16, 2011 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. Quote Link to comment Share on other sites More sharing options...
Cory Posted June 16, 2011 Report Share Posted June 16, 2011 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. Quote Link to comment Share on other sites More sharing options...
aaron_e Posted June 17, 2011 Author Report Share Posted June 17, 2011 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. ok that seems to work, thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.