Array Find
Posted: Sat Jul 18, 2015 2:09 pm
Okay, is this code inherently flawed?
It seems to crash EQ every time I try to call it, passing in a string and an array as parameters.
Code: Select all
|--------------------------------------------------------------------------------
|SUB: InArrayPartial
|--------------------------------------------------------------------------------
Sub InArrayPartial(string Needle, array Haystack)
/declare i int
/for i 1 to ${Haystack.Size}
/if (${Needle.Find[${Haystack[i]}]}) {
/return TRUE
}
/next i
/return FALSE