# Class ExpressionData

ExpressionData

The expression data that is used to evaluate an expression.

Only available for Google Workspace add-ons that extend Google Workspace Studio.

```javascript
const expressionData = CardService.newExpressionData();
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `addCondition(condition)` | `ExpressionData` | Adds a condition to the current expression data. |
| `addEventAction(eventAction)` | `ExpressionData` | Adds an event action to the current expression data. |
| `setExpression(expression)` | `ExpressionData` | Sets the expression data value. |
| `setId(id)` | `ExpressionData` | Sets the expression data id. |

## Detailed documentation

### `addCondition(condition)`

Adds a condition to the current expression data.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `condition` | `Condition` | The Condition to add. |

#### Return


`ExpressionData` --- This ExpressionData, for chaining.

*** ** * ** ***

### `addEventAction(eventAction)`

Adds an event action to the current expression data.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `eventAction` | `EventAction` | The EventAction to add. |

#### Return


`ExpressionData` --- This ExpressionData, for chaining.

*** ** * ** ***

### `setExpression(expression)`

Sets the expression data value.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `expression` | `String` | The uncompiled CEL expression. |

#### Return


`ExpressionData` --- This ExpressionData, for chaining.

*** ** * ** ***

### `setId(id)`

Sets the expression data id.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `id` | `String` | The unique identifier of the ExpressionData. |

#### Return


`ExpressionData` --- This ExpressionData, for chaining.