# TryGetValue(string, out VariablesGroupAsset)

> Returns true if a global variable group could be found with a matching name, or false if one could not.

## Definition

* **Type:** Method
* **Namespace:** [Unity.SmartStrings.Extensions](/engine/6000.7/script-reference/unity/smartstrings/extensions.md)
* **Assembly:** UnityEngine.SmartStringsModule

## TryGetValue(string, VariablesGroupAsset)

```csharp
public bool TryGetValue(string name, out VariablesGroupAsset value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the global variable group to find.**** (\[VariablesGroupAsset]\(/engine/6000.7/script-reference/unity/smartstrings/persistentvariables/variablesgroupasset)): The found global variable group or `null` if one could not be found with a matching name.

### Returns

| Type                                                          | Description                                                   |
| ------------------------------------------------------------- | ------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if a group could be found or `false` if one could not. |
