Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

t

t

type: system constant
location: built-in
source file: xlinit.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

t

DESCRIPTION

The T constant is built into XLISP. It represents True - as oppossed to false (NIL).

EXAMPLES

(setq myvar T)                          ; set MYVAR to True
(setq myvar 'T)                         ; T and 'T both evaluate to T
(if t (print "this will print")         ; if/then/else
      (print "this won't print"))

NOTE: Be careful with the T value. It is possible to do a SETQ on T and set it to other values (like NIL). Some operations will still return proper T or NIL values, but the system will be in a bad state.


Go to the first, previous, next, last section, table of contents.