badd

 

 

Overview

The badd function is a built-in function that adds boolean operands and returns a boolean value. The operands are not checked and are not coerced. Both operands are treated as integers during the add operation. The result is a true if and only if the result of the operation is a one; otherwise, the result is a Boolean false.

Usage

The badd built-in function is a simple but very fast boolean addition function. Use the badd function for highly optimized boolean addition.

 

Syntax


Expression: (badd bool1 bool2 ... )

Arguments Name Type Description
Argument:bool1Boolean The first boolean to be added.
Argument:bool2Boolean An arbitrary number of boolean operands.

Returns:

Returns a Boolean sum of all of the operands.



 

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.

Boolean Integer

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

++ += + /=
/ * -- -=
- abortTransaction addMethod addi
avg badd balance bcompareEQ
bcompareGE bcompareGT bcompareLE bcompareLT
bcompareNE bdiv beginTransaction binaryInsert
binaryNand binaryNor binaryNot binaryNxor
binarySearch bitwiseAnd bitwiseNand bitwiseNor
bitwiseNot bitwiseNxor bitwiseOr bitwiseShiftLeft
bitwiseShiftRight bitwiseXor bmod bmul
boolean cadd ccompareEQ ccompareGE
ccompareGT ccompareLE ccompareLT ccompareNE
cdiv char character checkPointTransaction
clear cmod cmul code
commitTransaction compareEQ compareGE compareGT
compareLE compareLT compareNE compare
comparison compile cons count
csub day days360 debugDetective
debug deleteRows delete disassemble
display divi evalInSyncLocalContext exit
exportCsv exportSbf exportTab fact
fdisplay fileClose fileCopy fileDir
fileDisplay fileErase fileOpen fileReadRecord
fileRead fileResize fileSeek fileWrite
filewriteln findBlock find floor
fraction freeBlock gc gcd
getRecursionCount hashString hour iadd
icompareEQ icompareGE icompareGT icompareLE
icompareLT icompareNE idiv imod
importCsv importSbf importTab imul
insertRows insert inside inspect
integer isAtom isBitVector isBoolean
isBound isByteVector isCharAlphabetic isCharAlphanumeric
isCharLowercase isCharName isCharNumeric isCharUppercase
isCharWhitespace isChar isCharacter 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 kurtosis lcm
left length lisp list
loadModule loadWorkspace logConsole macroReplace
makeQuotedList max median member
mid min minute mod
modi money month morph
muli ncompareEQ ncompareGE ncompareGT
ncompareLE ncompareLT ncompareNE new
number objectToMatrix objectToNumMatrix objectToNumVector
onError pair parent parse
preAllocateFixedMemoryBlocks product qt quit
random randomize range rank
refAttributes refValues ref remove
rename replace rept reset
resize right round saveModule
saveObject saveWorkspace second setAttributes
setBlock setCar setCdr setLastCdr
set setf setq sizeof
skew sort sql sqrt
srandom stdev stdevp stringCiEQ
stringCiGE stringCiGT stringCiLE stringCiLT
stringCiNE string subi substitute
substringCiEQ substringCiGE substringCiGT substringCiLE
substringCiLT substringCiNE substringEQ substringGE
substringGT substringLE substringLT substringNE
substring sum sumsqr svmRegression
systemCheck system text time
type uniqueInsert 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