Cant loop through a List

Here is the code in question:

public List<Item> craftingItems = new List<Item>();

public void checkIfItemIsCraftable(){
		for (int i = 0; i < inv.database.craftingDatabase.Count; i++) {
			for (int x = 0; i < craftingItems.Count; x++) {
				if (craftingItems [x].ID == inv.database.craftingDatabase  <em>["craft"] ["itemID_1"] || craftingItems [x].ID == inv.database.craftingDatabase  *["craft"] ["itemID_2"]) {*</em>

if (craftingItems .ID == inv.database.craftingDatabase [“craft”] [“itemID_1”] || craftingItems .ID == inv.database.craftingDatabase [“craft”] [“itemID_2”]) {
_ Debug.Log (inv.database.craftingDatabase .Name);_

* }*
* }*
* }*
* }*
* }*
Very sloppy I know but its because I’m just trying to figure something out. I am these errors:
> Assets/Scripts/ItemCrafting.cs(40,68):
> error CS0021: Cannot apply indexing
> with [] to an expression of type
> `Item’.
>
> Assets/Scripts/ItemCrafting.cs(41,67):
> error CS0021: Cannot apply indexing
> with [] to an expression of type
> `Item’.
I have looped through many variations of the the same type of List before but for some reason this one will not work. I have no idea if I am overlooking something but its gotten to the point were I just can’t figure it out. If someone could shine some light on this I would greatly appreciate it!
Thank you.

There should be an underline, depending on your IDE, marking the exact issue - but that’s neither here nor there.

The only issue that I can see here lies in inv.database.craftingDatabase: Can you access an array 3 times in this situation? Meaning, whatever craftingDatabase is equal to, can you use the [] accessor on it? Can you use that accessor or the next one down? And the next? - Your craftingItems[x] code seems to be fine.

I figured it out, idk why I missed it maybe it was because I was up for so long.