SourceForge.net Logo

Euphoria Standard Library
(ESL)

Home Page | Project Status | Contribute | Guidelines and Information



Euphoria Standard Library module:

boolean.e



1. Introduction


boolean.e contains a type definition for boolean variables. Boolean variables can have only two values, TRUE or FALSE. In Euphoria (like most other languages without builtin support for booleans) the numeric value of 1 is used to represent TRUE and the numeric value of 0 is used to represent FALSE.



2. Constants

FALSE

Description: FALSE = 0
or FALSE = not TRUE
Status: PROPOSED


TRUE

Description: TRUE = 1
or TRUE = (1 = 1)
Status: PROPOSED

3. Types


boolean(i)

Description: Returns TRUE if and only if i is an integer with the value of either TRUE or FALSE
Status: PROPOSED