Example Function comparison functions 012

 

 

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

(> sub1 add1 ) Returns: true
(< sub1 add1 ) Returns: false
(= add1 add1 ) Returns: true

Notes and Hints

If you prefer an integer resulting from the comparison (0 for equal, -1 for less than, and 1 for greater than), use the compare function.

 

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(#void) compareEQ(#void) compareGT(#void) compareNE(#void)
compareLT(#void) compareLE(#void)

 

Argument Types

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

Function

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

Function addMethod 017 Function addMethod 018 Function compare 013 Function compareEQ 013
Function compareGE 013 Function compareGT 013 Function compareLE 013 Function compareLT 013
Function compareNE 013 Function comparison functions 012 Function isEqual 012 Function isIdentical 011
Function type 015 List quote 001 List quote 002 List quote 003

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE