array = [1,2,3]; x = (array select 0); if ((array select 1)==2) then { [] call foo; };