# IsSmart(long)

> Returns whether a key is marked as a Smart String.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Localization](/engine/6000.7/script-reference/unity/localization.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule

```csharp
public bool IsSmart(long id)
```

### Parameters

**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The stable key id.

### Returns

| Type                                                          | Description                                                         |
| ------------------------------------------------------------- | ------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` when the key's values are Smart Strings; otherwise, `false`. |

### Remarks

Equivalent to testing the [SharedEntryFlags.Smart](/engine/6000.7/script-reference/unity/localization/sharedentryflags/smart.md) flag on the key's entry. Returns `false` when the id is absent.

Additional Resources: [SharedEntryFlags](/engine/6000.7/script-reference/unity/localization/sharedentryflags.md), [SharedTableData.SharedTableEntry.IsSmart](/engine/6000.7/script-reference/unity/localization/sharedtabledata/sharedtableentry/issmart.md)

Check whether a key uses Smart Strings.

### Examples

```csharp
using Unity.Localization;
using UnityEngine;

namespace Unity.Localization.Samples
{
    public class SharedTableDataIsSmartExample
    {
        public void Run()
        {
            var sharedData = ScriptableObject.CreateInstance<SharedTableData>();
            var entry = sharedData.AddKey("GREETING");
            entry.IsSmart = true;

            Debug.Log(sharedData.IsSmart(entry.Id));   // True
        }
    }
}
```
