# TryEvaluateSelector(ISelectorInfo)

> Evaluates the Selector based on the ISelectorInfo.CurrentValue.

## Definition

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

```csharp
bool TryEvaluateSelector(ISelectorInfo selectorInfo)
```

### Parameters

**** (\[ISelectorInfo]\(/engine/6000.7/script-reference/unity/smartstrings/core/extensions/iselectorinfo)): Selector to evaluate, along with its current value and result.

### Returns

| Type                                                          | Description                                                                                                                                                                                                                                                             |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the [Selector](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/selector.md) was evaluated and [ISelectorInfo.Result](/engine/6000.7/script-reference/unity/smartstrings/core/extensions/iselectorinfo/result.md) was set; otherwise, `false`. |
