---
title: "Class Condition"
slug: "sdk--stylelabs.m.sdk.models.policies.condition"
abstract: ""
---
# Class Condition

Interface for conditions.

## Inheritance

object

Condition

## Implements

[ICondition](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.policies.icondition.html)

## Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsPolicies

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class Condition : ICondition
```

## Properties

### DirectEntityIds

Gets the condition is met for entities that are direct descendants of the entities with the specified links. The entities are combined using the "OR" operator.

#### Declaration

```csharp
public IList<long> DirectEntityIds { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IList<>long |  |

### EntityIds

Gets the condition is met for entities that are direct or indirect descendants of the entities with the specified links. The entities are combined using the "OR" operator.

#### Declaration

```csharp
public IList<long> EntityIds { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IList<>long |  |

### Implements

[ICondition](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.policies.icondition.html)
