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 |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/expression-data-condition#setConditionType(ExpressionDataConditionType)` | `https://developers.google.com/apps-script/reference/card-service/expression-data-condition#` | 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. |

## 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` | `https://developers.google.com/apps-script/reference/card-service/expression-data-condition-type` | The type of the expression data condition. |

#### Return


`https://developers.google.com/apps-script/reference/card-service/expression-data-condition#` --- This object, for chaining.