# Vex reference: Settings

| Name | What |
| --- | --- |
| [`int`](#int) | A whole-number setting with its own label and limits (at the top of the script). |
| [`float`](#float) | A decimal setting with its own label and limits. |
| [`bool`](#bool) | A checkbox setting. |
| [`string`](#string) | A dropdown of choices; the first is the default. |
| [`source`](#source) | A price setting (close, open, high, low, hl2, hlc3, ohlc4). |
| [`color`](#color) | A color setting. |

## int

```vex
int(14, "Label", min =, max =, step =)
```

A whole-number setting with its own label and limits (at the top of the script).

**In Pine Script:** `input.int(defval, title, minval, maxval, step)`

**Example**

```vex
length = int(14, "RSI length", min = 2, max = 200)
plot(rsi(close, length))
```

## float

```vex
float(2, "Label", min =, max =, step =)
```

A decimal setting with its own label and limits.

**In Pine Script:** `input.float(defval, title, minval, maxval, step)`

**Example**

```vex
mult = float(2, "Width", min = 0.5, step = 0.25)
b = bands(close, 20, mult)
plot(b.upper)
plot(b.lower)
```

## bool

```vex
bool(true, "Label")
```

A checkbox setting.

**In Pine Script:** `input.bool(defval, title)`

**Example**

```vex
smooth = bool(true, "Smooth it")
plot(smooth ? ema(close, 9) : close)
```

## string

```vex
string("a" or "b", "Label")
```

A dropdown of choices; the first is the default.

**In Pine Script:** `input.string(defval, title, options)`

**Example**

```vex
average = string("ema" or "sma", "Average")
plot(average == "ema" ? ema(close, 20) : sma(close, 20))
```

## source

```vex
source(close, "Label")
```

A price setting (close, open, high, low, hl2, hlc3, ohlc4).

**In Pine Script:** `input.source(defval, title)`

**Example**

```vex
src = source(close, "Price")
plot(ema(src, 20))
```

## color

```vex
color(blue, "Label")
```

A color setting.

**In Pine Script:** `input.color(defval, title)`

**Example**

```vex
col = color(blue, "Line color")
plot(ema(close, 20), color = col)
```
