SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe
if (inventory.contains("bread") && !inventory.contains("water"))
Or
if (inventory.contains("bread")) { if (!inventory.contains("water")) { // do something here } }