compareGT

 

 

Overview

The compareGT is the comparison function that can be used with this Data Type. The resulting value is a Boolean value of true or false.

ObjectRepository

The compareGT is the comparison function that can be used with this Data Type. The resulting value is a Boolean value of true or false. The Object Repository files and NOT the file names are compared.

Void

The compareGT is the comparison function that can be used with native data types and Heap objects. The resulting value is a Boolean value of true or false. The #void constant will always be less than any other value.

Usage

Use the compareGT function when you wish to compare two objects of this Data Type and determine if the first object is greater than the second object and you wish the result to be expressed as a Boolean value (true or false). The alternative comparison function,compare, only determines if two objects are equal, less than or greater than.

 

Syntax


Expression: (compareGT obj1 obj2 )

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

Returns:

Returns true if the first Object is greater than the second Object and false if the first Object is lesser or equal in value than the second Object.




Expression: (compareGT string1 string2 )

Arguments Name Type Description
Argument:string1String The first String to be compared
Argument:string2String The second String to be compared

Returns:

Returns true if the first String is greater than the second String and false if the first String is lesser or equal in value than the second String.




Expression: (compareGT sym1 sym2 )

Arguments Name Type Description
Argument:sym1Symbol The first Symbol to be compared
Argument:sym2Symbol The second Symbol to be compared

Returns:

Returns true if the first Symbol is greater than the second Symbol and false if the first Symbol is lesser or equal in value than the second Symbol.




Expression: (compareGT struct1 struct2 )

Arguments Name Type Description
Argument:struct1Structure The first Structure to be compared
Argument:struct2Structure The second Structure to be compared

Returns:

Returns true if the first Structure is greater than the second Structure and false if the first Structure is lesser or equal in value than the second Structure.




Expression: (compareGT dict1 dict2 )

Arguments Name Type Description
Argument:dict1Dictionary The first Dictionary to be compared
Argument:dict2Dictionary The second Dictionary to be compared

Returns:

Returns true if the first Dictionary is greater than the second Dictionary and false if the first Dictionary is lesser or equal in value than the second Dictionary.




Expression: (compareGT dir1 dir2 )

Arguments Name Type Description
Argument:dir1Directory The first Directory to be compared
Argument:dir2Directory The second Directory to be compared

Returns:

Returns true if the first Directory is greater than the second Directory and false if the first Directory is lesser or equal in value than the second Directory.




Expression: (compareGT vector1 vector2 )

Arguments Name Type Description
Argument:vector1Vector The first Vector to be compared
Argument:vector2Vector The second Vector to be compared

Returns:

Returns true if the first Vector is greater than the second Vector and false if the first Vector is lesser or equal in value than the second Vector.




Expression: (compareGE fltvector1 fltvector2)

Arguments Name Type Description
Argument:fltvector1FltVector The first FltVector to be compared
Argument:fltvector2FltVector The second FltVector to be compared

Returns:

Returns true if the first Vector is greater than the second Vector and false if the first Vector is lesser or equal in value than the second Vector.




Expression: (compareGE shortvector1 shortvector2)

Arguments Name Type Description
Argument:shortvector1ShortVector The first ShortVector to be compared
Argument:shortvector2ShortVector The second ShortVector to be compared

Returns:

Returns true if the first Vector is greater than the second Vector and false if the first Vector is lesser or equal in value than the second Vector.




Expression: (compareGE intvector1 intvector2)

Arguments Name Type Description
Argument:intvector1IntVector The first IntVector to be compared
Argument:intvector2IntVector The second IntVector to be compared

Returns:

Returns true if the first Vector is greater than the second Vector and false if the first Vector is lesser or equal in value than the second Vector.




Expression: (compareGE numvector1 numvector2)

Arguments Name Type Description
Argument:numvector1NumVector The first NumVector to be compared
Argument:numvector2NumVector The second NumVector to be compared

Returns:

Returns true if the first Vector is greater than the second Vector and false if the first Vector is lesser or equal in value than the second Vector.




Expression: (compareGE objvector1 objvector2)

Arguments Name Type Description
Argument:objvector1ObjVector The first ObjVector to be compared
Argument:objvector2ObjVector The second ObjVector to be compared

Returns:

Returns true if the first Vector is greater than the second Vector and false if the first Vector is lesser or equal in value than the second Vector.




Expression: (compareGE bitvector1 bitvector2)

Arguments Name Type Description
Argument:bitvector1BitVector The first BitVector to be compared
Argument:bitvector2BitVector The second BitVector to be compared

Returns:

Returns true if the first Vector is greater than the second Vector and false if the first Vector is lesser or equal in value than the second Vector.




Expression: (compareGT brick1 brick2 )

Arguments Name Type Description
Argument:brick1Brick The first Brick to be compared
Argument:brick2Brick The second Brick to be compared

Returns:

Returns true if the first Brick is greater than the second Brick and false if the first Brick is lesser or equal in value than the second Brick.




Expression: (compareGT matrix1 matrix2 )

Arguments Name Type Description
Argument:matrix1Matrix The first Matrix to be compared
Argument:matrix2Matrix The second Matrix to be compared

Returns:

Returns true if the first Matrix is greater than the second Matrix and false if the first Matrix is lesser or equal in value than the second Matrix.




Expression: (compareGT nummatrix1 nummatrix2 )

Arguments Name Type Description
Argument:nummatrix1NumMatrix The first NumMatrix to be compared
Argument:nummatrix2NumMatrix The second NumMatrix to be compared

Returns:

Returns true if the first NumMatrix is greater than the second NumMatrix and false if the first NumMatrix is lesser or equal in value than the second NumMatrix.




Expression: (compareGT pair1 pair2 )

Arguments Name Type Description
Argument:pair1Pair The first Pair to be compared
Argument:pair2Pair The second Pair to be compared

Returns:

Returns true if the first Pair is greater than the second Pair and false if the first Pair is lesser or equal in value than the second Pair.




Expression: (compareGT list1 list2 )

Arguments Name Type Description
Argument:list1List The first List to be compared
Argument:list2List The second List to be compared

Returns:

Returns true if the first List is greater than the second List and false if the first List is lesser or equal in value than the second List.




Expression: (compareGT Lambda1 Lambda2 )

Arguments Name Type Description
Argument:Lambda1Lambda The first Lambda to be compared
Argument:Lambda2Lambda The second Lambda to be compared

Returns:

Returns true if the first Lambda is greater than the second Lambda and false if the first Lambda is lesser or equal in value than the second Lambda.




Expression: (compareGT gor1 gor2 )

Arguments Name Type Description
Argument:gor1 ObjectRepository The first ObjectRepository to be compared
Argument:gor2ObjectRepository The second ObjectRepository to be compared

Returns:

Returns true if the first ObjectRepository is greater than the second ObjectRepository and false if the first ObjectRepository is lesser or equal in value than the second ObjectRepository.



 

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
Matrix Number Date Function
Lambda Directory Vector Brick
ShortVector Boolean Pair List
Void Character Complex ObjectRepository

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

++ += + /=
/ *= * --
-= - abortTransaction abs
acos add1 addMethod addi
appendWriteln append apply argCount
argFetch argument arithmetic asin
associate atan attachLibrarian avg
badd balance bcompareEQ bcompareGE
bcompareGT bcompareLE bcompareLT bcompareNE
bdiv beginTransaction binaryInsert binaryNand
binaryNor binaryNot binaryNxor binarySearch
bitToNumberVector bitwiseAnd bitwiseNand bitwiseNor
bitwiseNot bitwiseNxor bitwiseOr bitwiseShiftLeft
bitwiseShiftRight bitwiseXor bmod bmul
boolean c::r cadd callcc
car ccompareEQ ccompareGE ccompareGT
ccompareLE ccompareLT ccompareNE cdiv
cdr character checkPointTransaction class
clean clear closeLog cmod
cmul code commitTransaction compareEQ
compareGE compareGT compareLE compareLT
compareNE compare comparison compile
complex compress conjugate cons
copy cos cosh count
csub date day days360
debugBrowsableProcs debugDetective debugEval debug
decode defchild defclass define(macro)
defineStructure define defmacro defmethod
deforphan defriend defstruct defun
deg deleteRows delete detachLibrarian
dimension disassemble display divi
downcase encode evalInSyncLocalContext eval
exp exportCsv exportSbf exportTab
expt fact fdisplay fieldsOf
fileClose fileCopy fileDir fileDisplay
fileEraseDir fileErase fileExists fileMakeDir
fileOpen fileReadAll fileReadRecord fileRead
fileSizeOf fileWriteAll fileWrite filewriteln
findBlock find floor fraction
freeBlock gc getGlobalValue getSymbolTable
getTickCount globalBinding hashString hour
iadd icompareEQ icompareGE icompareGT
icompareLE icompareLT icompareNE idiv
imaginary imod importCsv importSbf
importTab imul 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
isub julian kurtosis lambda
last left length lisp
list loadModule loadRepository loadWorkspace
lock log10 log2 logConsole
log logbase macroReplace makeDictionary
makeGramMatrix makeLambda makeQuotedList makeQuotedSymbol
makeStructure map mapc max
median member methodsOf mid
min minute mod modi
money month morph muli
myself nadd ncompareEQ ncompareGE
ncompareGT ncompareLE ncompareLT ncompareNE
ndiv new nmod nmul
now nsub number objectToDictionary
objectToDirectory objectToList objectToMatrix objectToNumMatrix
objectToNumVector objectToStructure objectToVector offset
onError openLog pair parent
parse pi pointer product
proplist proprecord putprop qt
quit quote rad random
randomize range rank real
refAttributes refLibrarian refValues ref
remProp remove rename replace
rept reset resize reverse
right round run saveImmediate
saveModule saveObject saveRepository saveWorkspace
second send setAttributes setBlock
setCar setCdr setLastCdr set
setf setq sigmoid sign
sin sinh sizeof skew
sleep sort sql sqrt
srandom stdev stdevp stringCiEQ
stringCiGE stringCiGT stringCiLE stringCiLT
stringCiNE stringFill stringToBVector stringToVector
string sub1 subi submit
substitute substringCiEQ substringCiGE substringCiGT
substringCiLE substringCiLT substringCiNE substringEQ
substringFill substringGE substringGT substringLE
substringLT substringNE substring sum
sumsqr super svmRegression symbolToTypeCode
symbol systemCheck system tan
tanh text time today
trim type uniqueInsert unlock
upcase var varp 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