The 'char/=' [character-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 sensitive, the character
'#\a' is different and of greater ASCII value
(char/= #\a #\b) ; returns T (char/= #\a #\b #\c) ; returns T (char/= #\a #\a) ; returns NIL (char/= #\a #\b #\b) ; returns NIL (char/= #\A #\a) ; returns T (char/= #\a #\A) ; returns T
Note: Be sure that the 'char/=' function is properly typed in. The '/' is a forward slash. It is possible to mistakenly type a '\' (backslash). This is especially easy because the character mechanism is '#\a'. If you do use the backslash, no error will be reported because backslash is the single escape character and the XLISP reader will evaluate 'char\=' as 'char='. No error will be reported, but the sense of the test is reversed.
See the
char/=
function in the