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.

char-not-equal

char-not-equal

type: function (subr) 
location: built-in
source file: xlstr.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(char-not-equal <char1> <charN> ... )
        <char1>         -       a character expression
        <charN>         -       character expression(s) to compare

DESCRIPTION

The CHAR-NOT-EQUAL function takes one or more character arguments. It checks to see if all the character arguments are different values. T is returned if the arguments are of different ASCII value. In the case of two arguments, this has the effect of testing if <char1> is not equal to <char2>. This test is case insensitive - the character #\a is considered to be the same ASCII value as #\A.

EXAMPLES

(char-not-equal #\a #\b)                ; returns T
(char-not-equal #\a #\b #\c)            ; returns T
(char-not-equal #\a #\a)                ; returns NIL 
(char-not-equal #\a #\b #\b)            ; returns NIL
(char-not-equal #\A #\a)                ; returns NIL
(char-not-equal #\a #\A)                ; returns NIL

NOTE: The CHAR-NOT-EQUAL function is listed in the documentation that comes with XLISP as CHAR-NOT-EQUALP. It functions properly in the XLISP code as CHAR-NOT-EQUAL.


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