ISLOGICAL
Returns TRUE when the value is a boolean.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=ISLOGICAL(value)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
value | any | Required | — |
Return type
Logical (TRUE or FALSE)
Remarks
- Only logical TRUE/FALSE values return TRUE.
- Numeric truthy/falsy values are not considered logical by this predicate.
- Errors return FALSE.
Examples
Test how the predicate classifies a logical value.
Formula =ISLOGICAL(TRUE)
Expected result TRUE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Test numeric-looking text without converting it to a number.
Formula =ISLOGICAL("123")
Expected result FALSE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Test an empty string, which still has a text type.
Formula =ISLOGICAL("")
Expected result FALSE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Numeric input
Formula =ISLOGICAL(1)
Expected result FALSE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Do truthy numbers count as logical values?
No. ISLOGICAL returns TRUE only for actual boolean TRUE/FALSE values.