First thanks for your fast reply, your great!
The problem is, i do have enchanted items in my inventory and as i understand, this code checks if there are ANY enchanted items of the same ID and if yes then it does not use the item.
What i want is, to enchant lets say 20 items in a row to +7. If the first item is +7 then use an unenchanted item.
Any help is appreciated , meanwhile ill sleep over it, maybe that helps^^