> 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/api/csharp/yarn.compiler/yarn.compiler.compilationresult/yarn.compiler.compilationresult.getdescriptionforvariable.md).

# GetDescriptionForVariable(string)

Method in [CompilationResult](/api/csharp/yarn.compiler/yarn.compiler.compilationresult.md)

## Summary

Gets the description for a given variable, if it exists.

```csharp
public string? GetDescriptionForVariable(string variableName)
```

## Parameters

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

## Returns

The description for the variable, or `null` if none was found.
