# NodeExists(string)

Method in [Dialogue](https://docs.yarnspinner.dev/2.0/api/csharp/yarn/yarn.dialogue)

## Summary

Gets a value indicating whether a specified node exists in the Program.

```csharp
public bool NodeExists(string nodeName)
```

## Parameters

| Name              | Description           |
| ----------------- | --------------------- |
| `string` nodeName | The name of the node. |

## Returns

`true` if a node named `nodeName` exists in the Program, `false` otherwise.
