IS LOGICAL()

From Recital Documentation Wiki
Revision as of 15:09, 14 June 2011 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to check whether an expression is a logical


Syntax

IS_LOGICAL(<exp>)


See Also

IS_ARRAY(), IS_DATE(), IS_FLOAT(), IS_INT(), IS_NUMERIC(), IS_OBJECT(), IS_STRING(), ISALPHA(), ISDIGIT(), ISLOWER(), ISUPPER(), LOCAL, PRIVATE, PUBLIC, RELEASE, RESTORE, SAVE, TYPE()


Description

The IS_LOGICAL() function returns .T. (true) if the specified expression is a logical value, otherwise .F. (false).


Example

> ? is_logical(.T.)                                                             
.T.                                                                             
> ? is_logical(True)                                                            
.T.                                                                             
> ? is_logical(False)                                                           
.T.                                                                             
> ? is_logical(2 = 1 + 1)                                                       
.T.


Products

Recital, Recital Server