# ConditionalVisibilityAttribute.TestCondition

```csharp
bool TestCondition(object targetObject, TypeDescription td)
```

The test condition.

### Parameters

- `targetObject` (`object`): The class instance of the property this attribute is attached to.
- `td` (`TypeDescription`): Description of the `targetObject`'s type.

### Returns

`bool`: Return true if the property should be visible.

Declared in [ConditionalVisibilityAttribute](/api/ConditionalVisibilityAttribute).
Assembly: `Sandbox.Engine`.
