# Game Stat List Contains

<figure><img src="/files/39T5thmwFG5s7xnaPNC0" alt=""><figcaption></figcaption></figure>

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

{% hint style="info" %}
In the example above no `Stats` have been added. This means that the comparison will take into account the entire contents of the `GameStatList`. Essentially, this condition will be met as long as the `GameStatList` passed into the Blackboard Note has fewer than 5 `gameStat` objects in it.

The examples on [**Game Condition List Contains**](/magic-pig-games/game-modules-4/module-documentation/quests/quest-conditions/quest-condition-details/game-condition-list-contains.md) and [**Game Item Object List Contains**](/magic-pig-games/game-modules-4/module-documentation/quests/quest-conditions/quest-condition-details/game-item-object-list-contains.md) each show a different way of using these very similar Quest Conditions.
{% 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 (Stats, 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infinitypbr.gitbook.io/magic-pig-games/game-modules-4/module-documentation/quests/quest-conditions/quest-condition-details/game-stat-list-contains.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
