# DerivedVariable

A URL variable computed from control values with a lookup table, for feeds
whose file names combine several choices. The key is the values of `from`,
in order, joined with `|`, such as `day|false`.

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

## Signature

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

## Properties

### from

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

The ids of the controls whose values are joined, in order, to make the lookup key.

### id

```ts
readonly id: string;
```

The variable name used in templates.

### table

```ts
readonly table: Readonly<Record<string, string>>;
```

Maps each joined key, such as `day|false`, to the value the variable takes.

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