> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.3/api/csharp/yarn.unity/yarn.unity.variablestoragebehaviour/yarn.unity.variablestoragebehaviour.contains.md).

# Contains(string)

Method in [VariableStorageBehaviour](/2.3/api/csharp/yarn.unity/yarn.unity.variablestoragebehaviour.md)

## Summary

Returns a boolean value representing if a particular variable is inside the variable storage.

```csharp
public abstract bool Contains(string variableName);
```

## Parameters

| Name                  | Description                            |
| --------------------- | -------------------------------------- |
| `string` variableName | The name of the variable to check for. |

## Returns

`true` if this variable storage contains a value for the variable named `variableName` ; `false` otherwise.
