Examine giving index versus For and if search performance

Hi, there.
I was testing an examine giving index and for if loop to search just a first value.
As a result I get FOR and IF has better performance than examine giving index.
It seem that examine always search the full array.
What’s your opinion ?
Any way to optimise using examine ?

Use the Forum’s search function to see that EXAMINE performance has been discussed several times, with the technique of redefining an array as a scalar getting most of the attention.

Remember that no single technique will give you the best performance in every situation. A number of factors affect performance, including number of occurrences, search string length, and target string length. Every technique has a point of diminishing returns (i.e. where it starts performing badly), so test to see which works best in your situation.