# Check(SearchExpression, SearchExpressionContext)

> Execute a SearchExpression and checks if the internal value of the first yielded SearchItem is truish. Not 0, not null, not "" and not false.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

```csharp
public static bool Check(SearchExpression e, SearchExpressionContext c)
```

### Parameters

**** (\[SearchExpression]\(/engine/6000.6/script-reference/unityeditor/search/searchexpression)): SearchExpression to test.**** (\[SearchExpressionContext]\(/engine/6000.6/script-reference/unityeditor/search/searchexpressioncontext)): Execute context of the expression.

### Returns

| Type                                                          | Description                                                                                 |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the SearchExpression yields more than one item or if the sole item is true. |
