comparison

 

 

Overview

The =, <> ,<, <=, >, >= functions are equivalent to compareEQ, compareNE, compareGT, compareGE, compareLT, and compareLE comparison functions. The resulting value is a Boolean value of true if the relational operator results in a true comparison otherwise the resulting value is false.

Usage

Use the comparison functions when you wish to compare two Vectors and determine if they are equal, not equal, less than, less than or equal to, greater than, greater than or equal to and you wish the result to be expressed as a Boolean value (true or false). For two Vectors to compare equal, all values have to be equal. The less-than < condition is satisfied only if the first Vector is less than the second Vector. The greater-than > condition is satisfied only if the first Vector is greater-than the second Vector.

 

Syntax


Expression: (= obj1 obj2)

Arguments Name Type Description
Argument:obj1Void Character Date Complex First object to be compared. Must be a native data type.
Argument:obj2Void Character Date Complex Second object to be compared. Must be a native data type.

Returns:

Returns true if the comparison is true, false if the comparison is false.



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

String Symbol Structure Dictionary
Directory Brick Vector Boolean
Void NumVector FltVector IntVector
ShortVector NumVector ObjVector BitVector
ObjectRepository

Here are also a number of links to functions having arguments with any of these data types.

++ += /= *=
-- -= abortTransaction addMethod
appendWriteln append apply attachLibrarian
badd balance bcompareEQ bcompareGE
bcompareGT bcompareLE bcompareLT bcompareNE
bdiv beginTransaction binaryInsert binaryNand
binaryNor binaryNot binaryNxor binarySearch
bitToIntegerVector bitToNumberVector bitwiseAnd bitwiseNand
bitwiseNor bitwiseNot bitwiseNxor bitwiseOr
bitwiseShiftLeft bitwiseShiftRight bitwiseXor bmod
bmul boolean ccompareEQ ccompareGE
ccompareGT ccompareLE ccompareLT ccompareNE
cdr character checkPointTransaction class
clean clear closeLog code
commitTransaction compareEQ compareGE compareGT
compareLE compareLT compareNE compare
comparison compile compress cons
copy count date day
days360 debugBrowsableProcs debugDetective debugEval
debug defchild defclass define(macro)
defineStructure define defmacro defmethod
deforphan defriend defstruct defun
deleteRows delete detachLibrarian dimension
disassemble display downcase encode
evalInSyncLocalContext eval exportCsv exportSbf
exportTab fdisplay fieldsOf fileClose
fileCopy fileDir fileDisplay fileEraseDir
fileErase fileExists fileMakeDir fileOpen
fileReadAll fileReadRecord fileRead fileSizeOf
fileWriteAll fileWrite filewriteln findBlock
find freeBlock gc getGlobalValue
getSymbolTable globalBinding hashString hour
icompareEQ icompareGE icompareGT icompareLE
icompareLT icompareNE importCsv importSbf
importTab insertRows insert inside
inspect integer isAtom isBitVector
isBoolean isBound isByteVector isCharAlphabetic
isCharAlphanumeric isCharLowercase isCharName isCharNumeric
isCharUppercase isCharWhitespace isChar isCharacter
isClass isComplex isDate isDictionary
isDirectory isEqual isError isEven
isExact isFloatVector isIdentical isImmediate
isInexact isInside isIntegerVector isInteger
isLambda isMatrix isMember isMoney
isNegative isNull isNumberMatrix isNumberVector
isNumber isObjectVector isObject isOdd
isPair isPcodeVector isPositive isString
isStructure isSymbol isText isTransaction
isType isVector isZero julian
left length lisp list
loadModule loadRepository loadWorkspace lock
logConsole macroReplace makeDictionary makeGramMatrix
makeQuotedList makeQuotedSymbol makeStructure map
mapc member methodsOf mid
minute money month morph
nadd ncompareEQ ncompareGE ncompareGT
ncompareLE ncompareLT ncompareNE ndiv
new nmod nmul nsub
number objectToDictionary objectToDirectory objectToList
objectToMatrix objectToNumMatrix objectToNumVector objectToStructure
objectToVector offset onError openLog
pair parent parse pointer
product proplist proprecord putprop
qt quit rank refAttributes
refLibrarian refValues ref remProp
remove rename replace rept
reset resize reverse right
run saveImmediate saveModule saveObject
saveRepository saveWorkspace second send
setAttributes setBlock setCar setCdr
setLastCdr set setf setq
sizeof sort sql stringCiEQ
stringCiGE stringCiGT stringCiLE stringCiLT
stringCiNE stringFill stringToBVector stringToVector
string submit substitute substringCiEQ
substringCiGE substringCiGT substringCiLE substringCiLT
substringCiNE substringEQ substringFill substringGE
substringGT substringLE substringLT substringNE
substring super svmRegression symbolToTypeCode
symbol systemCheck system text
time trim type uniqueInsert
unlock upcase vectorBinaryInnerProduct vectorBipolarInnerProduct
vectorCosineInnerProduct vectorCubeInnerProduct vectorDelete vectorExpInnerProduct
vectorFill vectorInnerProduct vectorLogInnerProduct vectorQuartInnerProduct
vectorQuintInnerProduct vectorSigmoidInnerProduct vectorSineInnerProduct vectorSquareInnerProduct
vectorTanInnerProduct vectorTanhInnerProduct version writelg
writeln year

Analytic Information Server (AIS)

AIS Component Systems

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