if(array[i] == X)じゃ?
揚げ足鳥スマソ