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 expects a Boolean, which dictates whether or not the Web Control should be visible.


Airscript represents Boolean values as TRUE and FALSE. They are distinguished from strings by a lack of quotation marks.


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

2 < 3 -> TRUE

Airscript functions, such as ISEMPTY and 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:

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

In addition to being given as output, Boolean values can also be given as input. The 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:

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