# Switch

A "yes or no" choice: delivery needed, agreement with the terms, a newsletter subscription. "Yes" or "no" goes into the variable: in templates and [conditions](https://support.watbot.org/mini-apps/data#conditions), a switch that is on is `1`, and one that is off is an empty value. To check that the switch is on: the variable "=" `1`.

![The "Switch" element: "Delivery needed" on the screen and the element's settings](https://support.watbot.org/_media/en/02-mini-apps/15-elements/_images/switch.webp?v=1791781230)

## Settings

- **"Variable"** and **"Label"** — as for [all fields](https://support.watbot.org/mini-apps/elements/fields#shared-settings).
- **"Appearance"** — "Toggle" or "Checkbox".
- **"On by default"** — the position of the switch when the screen opens.
- **"Label placement"** — "Left", "Right", "Left, fixed width", "Above".
- **"Row alignment"** — "Start", "End", "Space between".
- **"Color"** — the colour of the switch when on, from the app's palette.
- **"State"** — "Disabled".
