---
description: v4.0
---

# Game Item Object List Contains

<figure><img src="https://2431624982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MY3N_li2jPq7az6mYfq%2Fuploads%2FxnLS8zcO0Epbg2UY0hTe%2FScreenshot%202023-06-25%20at%206.35.59%20PM.png?alt=media&#x26;token=2a472f5b-00b5-486f-b58c-2ee6e1ec3f88" alt=""><figcaption><p>This will be met if the ItemObjectList contains at least 4 "Weapon" type objects.</p></figcaption></figure>

This will look for the `valueGameItemObjectList` on the Blackboard Note, and then compare against the contents of that list.

{% hint style="info" %}
The `GameModuleActor` has two `GameItemObjectList` variables -- one for `inventoryItems`, and one for `equippedItems`. You can combine these and pass them into the Blackboard with a new custom subject, if you'd like, by adding this method and new code to your class which inherits from `GameModulesActor` or `GameModulesInventoryActor`:

<pre class="language-csharp"><code class="lang-csharp">// Returns a new GameItemObjectList with the two combined
public GameItemObjectList InventoryAndEquipmentList()
{
    var equipmentAndInventory = new GameItemObjectList();
    equipmentAndInventory.list.AddRange(inventoryItems.list);
    equipmentAndInventory.list.AddRange(equippedItems.list);
    return equipmentAndInventory;
}

// Posts a note to the MainBlackboard with the combined list
private void PostInventoryAndEquipmentToBlackboard(){
<strong>    var newNote = new BlackboardNote(
</strong>        GameId()
        , "Inventory and Equipment"
        , new object[] { InventoryAndEquipmentList() });
    MainBlackboard.blackboard.AddNote(newNote);
}
</code></pre>
{% endhint %}

### Value Contents

If `IsEmpty` or `IsNotEmpty` is selected, no other options will show, as these are either true or false.

Otherwise, the comparison is based on the number of items in the list, specified by quantity.

### Grouping

When at least two items are added, this option will appear. It determines how to group the items that are in the list.

#### Sum

This means that the total number of items included will be totaled, and compared.

#### Each

This means that each item must individually meet the comparison requirements.

#### Any

This means that at least one of the items must meet the comparison requirements.

{% hint style="info" %}
If no Item Objects are added to the list, then the `Count` of all items in the list will be used to compare against.
{% endhint %}

### Item or Type

You can choose to search the list for specific items (Item Objects, in this case), or ObjectTypes.

### Quantity

This is the quantity we are comparing against.

### Add Condition / Type

You can drop a Item Object into the object field, or click the circle to select one. It will be added to the list. Remove from the list by clicking the red _<mark style="color:red;">**X**</mark>_ button.

For ObjectTypes, select from the drop down menu.
