XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next

char-not-equal


Type:   -   function (subr)
Source:   -   xlstr.c

Syntax

(char-not-equal char1 charN ... )
char1 - a character expression
charN - character expression(s) to compare
returns -  T  if the characters are of different ASCII value, NIL otherwise
Note: case is not significant with this function

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 original XLISP documentation as 'char-not-equalp'.

See the char-not-equal function in the XLISP 2.0 manual.

  Back to Top


XLISP > XLISP 2.0  -  Contents  -  Reference  -  Previous | Next