# TryGetValue<T>(out T)

> Tries to retrieve the value of the node option using the specified type.

## Definition

* **Type:** Method
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.6/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

## TryGetValue\<T>(T)

```csharp
bool TryGetValue<T>(out T value)
```

### Parameters

**** (T): The variable to assign the value to, if retrieval succeeds.

### Returns

| Type                                                          | Description                                                           |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the option exists and the type matches; otherwise, `false`. |

### Remarks

If the value was never explicitly set, this method still returns `true`, and `value` will contain the default value for type `T`.
