If this is about having many items to check in a single "if", like in Khris's example:
Then what you may use instead is a list of required items, which you would iterate in a loop and test whether each of these items exist. Such list could be created in various ways, even as a comma-separated list in String, for example. The only issue would be to convert a textual name into inventory item's pointer or ID.
Simply hypothetically, it could look like this:
where TestAllItems would parse the string and check for all the items there.
But I am currently speculating, as I do not see your real code, so I don't know which kinds of cases you are trying to work on.
Then what you may use instead is a list of required items, which you would iterate in a loop and test whether each of these items exist. Such list could be created in various ways, even as a comma-separated list in String, for example. The only issue would be to convert a textual name into inventory item's pointer or ID.
Simply hypothetically, it could look like this:
where TestAllItems would parse the string and check for all the items there.
But I am currently speculating, as I do not see your real code, so I don't know which kinds of cases you are trying to work on.