# ControlCondition

Makes a control usable only while another control has one of some values,
such as "Include smaller earthquakes" only for the hour and the day. A
disabled control keeps its value but shows as unavailable.

This is an interface exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import type { ControlCondition } from "@mapcairn/core";
 
interface ControlCondition
```

## Properties

### control

```ts
readonly control: string;
```

The id of the control to watch, in the same layer.

### in

```ts
readonly in: readonly string[];
```

The values of that control that enable this one.

Source: [packages/core/src/layers/definition.ts:59](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/definition.ts#L59)
