# Condition

- [JSON representation](https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/Condition#SCHEMA_REPRESENTATION)
- [ConditionType](https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/Condition#ConditionType)

Represents a predicate.

| JSON representation |
|---|
| ``` { "type": enum (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/Condition#ConditionType`), "parameter": [ { object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/Parameter`) } ] } ``` |

| Fields ||
|---|---|
| `type` | ``enum (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/Condition#ConditionType`)`` The type of operator for this condition. |
| `parameter[]` | ``object (`https://developers.google.com/tag-platform/tag-manager/api/reference/rest/v2/Parameter`)`` A list of named parameters (key/value), depending on the condition's type. Notes: - For binary operators, include parameters named <br /> `arg0` and `arg1` for specifying the left and right operands, respectively. - At this time, the left operand (<br /> `arg0` ) must be a reference to a variable. - For case-insensitive Regex matching, include a boolean parameter named<br /> `ignore_case` that is set to `true` . If not specified or set to any other value, the matching will be case sensitive. - To negate an operator, include a boolean parameter named<br /> `negate` boolean parameter that is set to `true` . <br /> |

## ConditionType

| Enums ||
|---|---|
| `conditionTypeUnspecified` |   |
| `equals` |   |
| `contains` |   |
| `startsWith` |   |
| `endsWith` |   |
| `matchRegex` |   |
| `greater` |   |
| `greaterOrEquals` |   |
| `less` |   |
| `lessOrEquals` |   |
| `cssSelector` |   |
| `urlMatches` |   |