# Boolean

The `Boolean` Data Type has two potential values: `TRUE` and `FALSE`. It used to store data with binary properties, such as the answers to "Yes"/"No" questions. For example, the _Is Visible_ property of many [Web Controls](../web-controls/button-web-control) expects a Boolean, which dictates whether or not the Web Control should be visible.

## Structure

Airscript represents Boolean values as `TRUE` and `FALSE`. They are distinguished from [strings](the-text-variable-data-type) by a lack of quotation marks.

## Examples

Boolean values are most commonly returned by Airscript expressions that make comparisons. For instance, the following example uses the [comparison operator](../airscript-expressions/comparison-operators) `<` to determine if 2 is less than 3, and returns `TRUE` because it is:

```javascript
2 < 3 -> TRUE
```

Airscript functions, such as [ISEMPTY](../airscript-expressions/conditional-functions/isempty) and [ISNOTEMPTY](../airscript-expressions/conditional-functions/isnotempty) also return Boolean values. The following example uses ISEMPTY to check if the given list is empty, and then returns `FALSE` because it isn't:

```javascript
ISEMPTY([1, 2, 3]) -> FALSE
```

In addition to being given as output, Boolean values can also be given as input. The [IF](../airscript-expressions/conditional-functions/if) function, for example, expects the first value its given to take the form of a Boolean, and returns a different value depending on the value of the Boolean:

```javascript
IF(FALSE, "The answer is yes.", "The answer is no.") -> "The answer is no."
```
