# GameQuestList Contains() Methods

Each can optionally include a `Uid()` to specify the quest to search for, or will return if any quest is of that status.

```csharp
if (gameQuestList.ContainsQuestsInProgress())
    Debug.Log("We have in progress quests!");
if (gameQuestList.ContainsQuestsSucceeded(uid))
    Debug.Log($"We have successfully completed quest {uid}");
if (gameQuestList.ContainsQuestsFailed())
    Debug.Log("We have failed in at least one quest");
if (gameQuestList.ContainsCompleted(uid))
    Debug.Log($"Quest {uid} has completed, either in success or in failure.");
```

### Additional Contains methods

```csharp
// Contains at least one quest which modifies stats
if (gameQuestList.ModifiesStats)
    Debug.Log("At least one quest will modify stats in it's current status.");
```


---

# 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/game-module-lists/contains-methods/gamequestlist-contains-methods.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.
