... if FromClient and (pck[1]=#$AA) and (ReadD(5)"не равно"ItemID1) and (ReadD(5)"не равно"ItemID2) then ...