[Contents] · [Home] · [Mail]

SALIERI Language - BOOL

Type:
BOOL: simple -> boolean

Call syntax:
BOOL(anObject)

Description:
BOOL convertes objects of type boolean, integer, real, and string into a boolean value, where for values of 1, 1.0, and "TRUE" the value TRUE is returned, and FALSE for all other values. When converting string values, the function is case sensitive.

Example:
> BOOL(2<3)
Result= TRUE
> BOOL(0)
Result= FALSE
> BOOL(1)
Result= TRUE
> BOOL(2.0-1.0)
Result= TRUE
> BOOL("TRUE")
Result= TRUE
> BOOL("hallo")
Result= FALSE
> BOOL("True")
Result= FALSE

See also:


[Contents] · [Home] · [Mail]
© sic!systems, page frame designed by hh; this page has been automatically generated from the SALIERI Documentation Database.