ScriptSpot

Forum topic · General Scripting

finditem array inside multidimensional array

By Ishak Suryo Laksono · 2009-09-08

Description

hi all...
i'm newbe here..i've got hard time to solve this simple thing,
any suggestion for this:

myarray=#(#(6,7,9),#(8,8,9))
b= finditem myarray #(8,8,9)
print b

result:
#(#(6, 7, 9), #(8, 8, 9))
0
0
0

does anybody know why i'm failed to find item (with array type)inside multidimensional array.
thanks for any feedback....

Comments (1)

Marco Brunetta · 2009-09-08

subArray1 = #(6,7,9)
subArray2 = #(8,8,9)
myarray=#(subArray1,subArray2)
b= finditem myarray subArray2

I think arrays need to be instances for findItem to work.