# Quest Condition Enums

A number of Enums are used when evaluating Quest Conditions. You can find these on the `QuestCondition.cs` class unless otherwise specified.

## Quest Condition Metric

In some cases, the metric used for evaluation is not the Blackboard Note. Using this in your [custom Quest Condition](/magic-pig-games/game-modules-4/module-documentation/quests/quest-conditions/create-a-custom-quest-condition.md) would enable you to provide more variety to how a condition is evaluated.

```csharp
public enum QuestConditionMetric
{
    BlackboardNote,
    Gametime,
    Explicit
}
```

## Value Comparison

This is used to determine how to compare to values, such as `int` and `float` values, which can be greater than, less than, or equal to each other.

<pre class="language-csharp"><code class="lang-csharp">public enum ValueComparison
{
    GreaterThan,
<strong>    LessThan,
</strong>    EqualTo,
    NotEqualTo,
    GreaterThanOrEqualTo,
    LessThanOrEqualTo
}
</code></pre>

## Value Contents

This is used for things that contain other things -- generally lists or arrays.

```csharp
public enum ValueContents
{
    HasMoreThan,
    HasMoreThanOrEqualTo,
    HasLessThan,
    HasLessThanOrEqualTo,
    HasExactly,
    IsEmpty,
    IsNotEmpty
}
```

## Group of Objects

When multiple objects are selected for comparison, determines how to utilize the set of items.

Any: At least one of the items must meet the criteria.

Sum: The sum of all the items in total must meet the criteria

Each: Each item in the list must meet the comparison.

```csharp
public enum GroupOfObjects
{
    Any,
    Sum,
    Each
}
```

## DatePart

*<mark style="color:blue;">Found on Gametime.cs</mark>*

When used in the context of a Quest Condition, this can be used to specify which date part (Minutes, Years, etc) to use when comparing values.

```csharp
public enum DatePart
{
    Minutes,
    Hours,
    Days,
    Weeks,
    Months,
    Seasons,
    Years
}
```


---

# 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-enums.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.
