# Class ExpressionDataCondition

ExpressionDataCondition

Represents a [CEL
expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) result.

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

```javascript
const expressionDataCondition = CardService.newExpressionDataCondition()
.setConditionType(CardService.ExpressionDataConditionType.EXPRESSION_EVALUATION_SUCCESS);
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `setConditionType(type)` | `ExpressionDataCondition` | Sets condition type for a [CEL expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs.md.txt#cel-validation) to indicate whether the expression evaluated successfully. |

## Detailed documentation

### `setConditionType(type)`

Sets condition type for a [CEL
expression validation](https://developers.google.com/workspace/add-ons/studio/validate-inputs#cel-validation) to indicate whether the expression evaluated successfully.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `type` | `ExpressionDataConditionType` | The type of the expression data condition. |

#### Return


`ExpressionDataCondition` --- This object, for chaining.