> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# AlertingDialogComparisonOperator()

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: function
- Stability: beta
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/presentation/automations/alerting/blocks/AlertingDialogComparisonOperator.tsx

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

The alerting dialog's condition field ("Condition": the operator — fixed threshold, change, difference or anomaly detection), connected to the dialog's state and rendered as a labelled form row.

Renders [DefaultAlertingDialogComparisonOperator()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.defaultalertingdialogcomparisonoperator/index.md) inside [AutomationDialogFormField()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.automationdialogformfield/index.md) with the props of [useAlertingDialogComparisonOperatorProps()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.usealertingdialogcomparisonoperatorprops/index.md); every prop passed here replaces the hook's value for that prop wholesale. Pass `enableAnomalyDetectionAlert={false}` to hide the anomaly-detection options. Renders nothing while `useAlertingDialogContext().isLoading` is true.

**Signature:**

```typescript
export declare function AlertingDialogComparisonOperator(overrides: Partial<IAlertingDialogComparisonOperatorProps>): ReactElement;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| overrides | Partial&lt;[IAlertingDialogComparisonOperatorProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertingdialogcomparisonoperatorprops/index.md)&gt; |  |

**Returns:**

ReactElement

## Example

```tsx
<AlertingDialogComparisonOperator enableAnomalyDetectionAlert={false} />
```
