---
title: "Class ConditionResource"
slug: "js-sdk--conditionresource"
abstract: ""
---
# Class ConditionResource

Representation of the condition for [PolicyResource](https://doc.sitecore.com/ch/en/developers/api-reference/js-sdk--policyresource.html).

## Constructors

### ConditionResource()

#### Declaration

```csharp
new ConditionResource()
```

### Members

### entities

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
entities
```

### directEntities

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
directEntities
```
