---
title: "Type Equals"
description: "Learn how to use the typeEquals condition to test a node's type against a specified value in JSON Schema. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/engine/behaviors/conditions/type-equals"
---

# Type Equals

The `typeEquals` condition tests whether a node's type is equal to a given value.

## JSON Schema

```
{
    "title": "Type Equals",
    "properties": {
        "type": {
            "type": "string",
            "title": "Type"
        }
    }
}
```

## Example #1

Suppose you wanted to test whether a node is of type `my:article`. You could set up the condition like this:

```
{
    "type": "typeEquals",
    "config": {
        "type": "my:article"
    }
}
```
