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.
Usage 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.
Expression:
Arguments
Name
Type
Description Argument: obj Character String Symbol Vector BitVector Brick ByteVector IntVector Void
FltVector ObjVector Structure Dictionary Directory Pair List
Matrix NumMatrix Integer Float Number Complex Boolean
The object to be converted.
Returns:
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.
Character | String | Symbol | Vector |
BitVector | Brick | ByteVector | IntVector |
Void | FltVector | ObjVector | Structure |
Dictionary | Directory | Pair | List |
Matrix | NumMatrix | Integer | Float |
Number | Complex | Boolean |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|