Example Brick comparison 019

 

 

Description

These examples use the comparison functions to do a case-sensitive comparison of two objects of the same type. A Boolean value is returned.

 

Details

(define nameList (new Brick: 2 Name:Object:3)) Returns: #<Record 123456>
(define customerList (new Brick: 2 Name:Object:1)) Returns: #<Record 234567>

The first Brick has greater value than the second Brick.

(= nameList customerList) Returns: false

The first Brick has greater value than the second Brick.

(> nameList customerList) Returns: true

 

Related Examples

Here are examples of the comparison function at work.

BitVector compare 018 BitVector comparison 014 Boolean comparison functions 009 Brick comparison 019
Character comparison 010 Complex comparison 021 Date comparison functions 011 Dictionary compare 004
Dictionary comparison functions 004 Directory compare 005 Directory comparison functions 005 FltVector comparison functions 014
Function comparison functions 012 IntVector compare 015 IntVector comparison functions 014 List comparison 020
Matrix compare 007 Matrix comparison functions 007 NumMatrix compare 023 NumMatrix comparison functions 023
NumVector compare 016 NumVector comparison 014 Number comparison 010 ObjVector compare 017
ObjVector comparison functions 014 ObjectRepository comparison 021 ObjectRepository comparison 022 Pair comparison 019
ShortVector compare 016 ShortVector comparison functions 015 String comparison functions 001 Structure comparison functions 003
Symbol comparison functions 002 Vector compare 006 Vector comparison functions 006 Void comparison functions 008

 

Function Links

Here is the link to the current function used in this example.

comparison

Here are a number of links to other related functions.

compare(Brick) compareEQ(Brick) compareNE(Brick) compareGT(Brick)
compareGE(Brick) compareLT(Brick) compareLE(Brick)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

Brick

Here are a number of links to examples having similar argument types.

Brick addMethod 008 Brick cdr 010 Brick compare 019 Brick compareEQ 019
Brick compareGT 019 Brick compareLE 019 Brick compareLT 019 Brick compareNE 019
Brick comparison 019 Brick copy 012 Brick defmethod 025 Brick isAtom 011
Brick isEqual 018 Brick isIdentical 020 Brick isObject 014 Brick isType 022
Brick length 017 Brick methodsOf 024 Brick new 015 Brick ref 036
Brick send 027 Brick setCdr 014 Brick setq 029 Brick setq 28
Brick sizeof 029 Brick type 026

How do I contact the AIS Server team?

You can always talk with the AIS at aiserver.sourceforge.net.