Boolean
Last updated
Was this helpful?
Last updated
Was this helpful?
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 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 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 <
to determine if 2 is less than 3, and returns TRUE
because it is:
Airscript functions, such as and 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:
In addition to being given as output, Boolean values can also be given as input. The 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: