# Conditions

Conditions check state machine states and can be used in Branch nodes, Conditions nodes, or any Game Creator 2 Condition context.

## Runner Conditions

Check states on specific State Machine Runner instances.

| Condition                                                                                          | Description                                              |
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| [**Node Is Running**](/game-creator-2/state-machine-2/visual-scripting/conditions/node-running.md) | Returns true if a node is executing on the target runner |
| [**Node Is Enabled**](/game-creator-2/state-machine-2/visual-scripting/conditions/node-enabled.md) | Returns true if a node is enabled on the target runner   |

## Asset Conditions

Check states on State Machine Assets directly, affecting all runners using that asset.

| Condition                                                                                            | Description                                    |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [**Node Is Running**](/game-creator-2/state-machine-2/visual-scripting/conditions/node-running-1.md) | Returns true if a node is running on the asset |
| [**Node Is Enabled**](/game-creator-2/state-machine-2/visual-scripting/conditions/node-enabled-1.md) | Returns true if a node is enabled on the asset |

## Usage Example

```
Branch Node:
├─ Condition: "State Machine Runner Node Is Running"
│   ├─ Target: Self
│   └─ Node: "PatrolNode"
├─ True → Actions: Start Alert Behavior
└─ False → Actions: Continue Current State
```

{% hint style="info" %}
Use Runner conditions for per-instance checks (e.g., "is this specific enemy patrolling?"). Use Asset conditions for global checks (e.g., "is the game paused?").
{% endhint %}


---

# 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://docs.ninjutsugames.com/game-creator-2/state-machine-2/visual-scripting/conditions.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.
