|
boolean
|
The boolean function converts an argument {obj} into a Boolean object.
If the object has a value of zero, the boolean function returns false.
All other values result in a return value of true.
When to use The boolean function is used to convert an object to a Boolean value.
Numeric values are reduced to two states: zero state is converted to false,
and any other state is converted to true. If the argument is already a Boolean, no
conversion is performed.
Returns false if the object has a value of 0. Returns true otherwise.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types obj The object to be converted. Character String Symbol Vector BitVector Brick ByteVector IntVector Void
FltVector ObjVector Structure Dictionary Directory Pair List
Matrix NumMatrix Integer Float Number Complex Boolean
Returns:
Examples
Argument Types
Character
String
Symbol
Vector
BitVector
Brick
ByteVector
IntVector
Void
FltVector
ObjVector
Structure
Dictionary
Directory
Pair
List
Matrix
NumMatrix
Integer
Float
Number
Complex
Boolean
How do I contact the AIS team?