# HideIfAttribute.TestCondition

## Overload 1

```csharp
bool TestCondition(object targetObject, TypeDescription td)
```

### Parameters

- `targetObject` (`object`)
- `td` (`TypeDescription`)

### Returns

`bool`

## Overload 2

```csharp
bool TestCondition(SerializedObject so)
```

### Parameters

- `so` (`SerializedObject`)

### Returns

`bool`

Declared in [HideIfAttribute](/api/HideIfAttribute).
Assembly: `Sandbox.Engine`.
