Thanks for the replies,
I didn't understand the Dim and Local explanation there.
and unfortunately it is not something can be solved by a loop.
my needs arise from something like this:
Func ColorCompare( $p1, $p2)
endfunc
$p1 and $p2 are 2 elements arrays representing pixels
when I call the func ColorCompare, I would like to be able to just do this:
ColorCompare( [23, 53] , [345, 132])
Apparently I can not.