|
|
|
equalP thing1 thing2
equal? thing1 thing2
thing1==thing2
outputs TRUE if the inputs are equal, FALSE otherwise.
Two numbers are equal if they have the same numeric value.
Two non-numeric words are equal if they contain the same characters in the same order.
If CaseIgnored? is true set by "setCaseIgnored true", then an upper case letter is considered the same as the corresponding lower case letter (This is the case by default.).
Two lists or arrays are equal if their members are equal.
Examples:
equal? true false ;false ;-)
equal? true true ;true ;-)
equal? false false ;true ;-)
equal? 1234 2345 ;false ;-)
equal? pi 3.14 ;false ;-)
equal? "A "a ;true ;-)
equal? "Hallo "World ;false ;-)
equal? [Hallo] [World] ;false ;-)
equal? [Hallo] [Hallo] ;true ;-)
equal? {1 2} {1 2} ;true ;-)
equal? {1 2} {3 4} ;false ;-)
|
|
|
|