Progress
Version 9
Product Update Bulletin


LOGICAL Function

Interface
OS
Speedscript
All
All
Yes

Converts any data type into the LOGICAL data type.

The LOGICAL function has the following syntax:

SYNTAX

LOGICAL (<expression> [, <char-expression-format>]  ) 

expression

An expression in the datatype that you want to convert to logical.

char-expression-format

A character expression that evaluates to a valid logical format, such as "si/no", or "da/nyet". This argument is ignored unless <expression> is of CHARACTER type. Also, this argument is only needed if <expression> evaluates to something other than the usual TRUE or FALSE, or YES or NO values.

EXAMPLE

DEFINE VARIABLE mychar AS CHAR. 
DEFINE VARIABLE v-log AS LOGICAL. 
	mychar="si". 
v-log=LOGICAL (mychar, "si/no") 
/*v-log is TRUE*/ 

NOTES

SEE ALSO

STRING, INTEGER, DATE in the Progress Language Reference .


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095