Difference between revisions of "Documentation/How Tos/Calc: ISLOGICAL function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→See also:) |
m |
||
Line 3: | Line 3: | ||
== ISLOGICAL == | == ISLOGICAL == | ||
Tests if a cell contains a logical value, <tt>'''TRUE'''</tt> or <tt>'''FALSE'''</tt>. | Tests if a cell contains a logical value, <tt>'''TRUE'''</tt> or <tt>'''FALSE'''</tt>. | ||
− | |||
=== Syntax: === | === Syntax: === | ||
Line 9: | Line 8: | ||
: Returns <tt>'''TRUE'''</tt> if <tt>'''value'''</tt> is either <tt>'''TRUE'''</tt> or <tt>'''FALSE'''</tt>, and <tt>'''FALSE'''</tt> otherwise. | : Returns <tt>'''TRUE'''</tt> if <tt>'''value'''</tt> is either <tt>'''TRUE'''</tt> or <tt>'''FALSE'''</tt>, and <tt>'''FALSE'''</tt> otherwise. | ||
− | |||
=== Example: === | === Example: === | ||
Line 18: | Line 16: | ||
<tt>'''ISLOGICAL(123)'''</tt> | <tt>'''ISLOGICAL(123)'''</tt> | ||
: returns <tt>'''FALSE'''</tt>, because <tt>'''123'''</tt> is a number, not a logical value. | : returns <tt>'''FALSE'''</tt>, because <tt>'''123'''</tt> is a number, not a logical value. | ||
− | |||
=== See also: === | === See also: === |
Revision as of 13:01, 19 January 2008
ISLOGICAL
Tests if a cell contains a logical value, TRUE or FALSE.
Syntax:
ISLOGICAL(value)
- Returns TRUE if value is either TRUE or FALSE, and FALSE otherwise.
Example:
ISLOGICAL(D5)
- where D5 contains FALSE, returns TRUE, because D5 contains a logical value.
ISLOGICAL(123)
- returns FALSE, because 123 is a number, not a logical value.
See also:
ISTEXT function, ISNUMBER function, ISBLANK function, ISERROR function, ISFORMULA function