6.1. The Environment Directory (.ENVIRONMENT)
The Environment object is a directory of public objects that are always accessible. The Environment object is automatically searched when environment symbols are used, or the Environment object may be directly accessed using the .ENVIRONMENT symbol. Entries stored in the Environment use the same name as the corresponding environment symbol, but without a leading period. For example:
say .true -> Displays "1"
say .environment~true -> Also displays "1"
The Environment object directory contains all of the Rexx built-in classes (Array, etc.), plus special Rexx constants such as .NIL, .TRUE, and .FALSE.
6.1.1. The ENDOFLINE Constant (.ENDOFLINE)
The ENDOFLINE object is a string constant representing the line terminator used for file line end markers for a given system. This constant is "0d0a"x on Windows (carriage return/linefeed) and "0a"x (linefeed) on Unix platforms.
6.1.2. The FALSE Constant (.FALSE)
The FALSE object is the constant "0" representing a FALSE result for logical and comparison operations.
6.1.3. The NIL Object (.NIL)
The Nil object is a special object that does not contain data. It usually represents the absence of an object, as a null string represents a string with no characters. It has only the methods of the Object class. Note that you use the Nil object (rather than the null string ("")) to test for the absence of data in an array or other Collection class entry:
if .nil = board[row,col] /* .NIL rather than "" */
then ...
6.1.4. The TRUE Constant (.TRUE)
The TRUE object is the constant "1", representing a true result for logical and comparison operations.