Vision Messages: Boolean
Profile of Class Boolean
Includes Classes: Boolean, FALSE, TRUE
Object | +--- Boolean | | | +--- FALSE | | | +--- TRUE
The class Boolean provides protocol for logical values. Logical values are represented by the two subclasses of Boolean - TRUE and FALSE. Most of the protocol for booleans is actually implemented at the classes TRUE and FALSE. The actual implementations will differ between the two classes, but the functional goal of a message will be the same.
Message Index
&& aBoolean (FALSE)
&& aBoolean (TRUE)
asSelf (Boolean)
asSelf (FALSE)
asSelf (TRUE)
classDescriptor (Boolean)
classDescriptor (FALSE)
classDescriptor (TRUE)
convertFrom: string
defaultInstance (Boolean)
defaultInstance (FALSE)
defaultInstance (TRUE)
ifFalse: aBlock (FALSE)
ifFalse: aBlock (TRUE)
ifFalse: block1 else: block2
ifTrue: aBlock (FALSE)
ifTrue: aBlock (TRUE)
ifTrue: block1 else: block2
ifTrue: aBlock ifFalse: aBlock (FALSE)
ifTrue: block1 ifFalse: block2 (TRUE)
ifTrue: block1 ifFalse: block2 else: block3 (FALSE)
ifTrue: block1 ifFalse: block2 else: block3 (TRUE)
isBoolean
isFALSE
isFalse
isTRUE
isTrue
new
not (FALSE)
not (TRUE)
print: f
whatAmI (Boolean)
whatAmI (FALSE)
whatAmI (TRUE)
|| aBoolean (FALSE)
|| aBoolean (TRUE)
Messages
Synopsis:FALSE && aBooleanDescription:
Returns FALSE independent of parameterType: Method          Returns: FALSE
Parameters:
1 - Boolean
Also Defined At:
| Undefined |

Synopsis:TRUE && aBooleanDescription:
Returns TRUE if parameter is TRUE. Note that if parameter is a block, it is evaluated first.Type: Method          Returns: Boolean
Parameters:
1 - Boolean
Also Defined At:
| Undefined |

Synopsis:Boolean asSelfDescription:
Returns the original object.Type: Primitive          Returns: Boolean
Also Defined At:
| Block | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:FALSE asSelfDescription:
Returns the original object.Type: Primitive          Returns: FALSE
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:TRUE asSelfDescription:
Returns the original object.Type: Primitive          Returns: TRUE
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:Boolean classDescriptorDescription:
Reference to the object which describes the class. Class level information is stored here.Type: Constant          Returns: Object
Also Defined At:
| Block | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:FALSE classDescriptorDescription:
Reference to the object which describes the class. Class level information is stored here.Type: Constant          Returns: Object
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:TRUE classDescriptorDescription:
Reference to the object which describes the class. Class level information is stored here.Type: Constant          Returns: Object
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:Boolean convertFrom: stringDescription:
This message converts the supplied string to an instance of the recipient's class if applicable, returning NA otherwise. The definition at Object will lookup the string in the class' naming dictionary, if defined. The version at String returns the recipient stripped of any extensions. The versions at Number, Integer, Double, and Float convert the recipient to a numeric value if possible. The version at Date converts the recipient to a Date using the 'asDate' message defined at String. The version at Boolean returns TRUE if the recipient contains an upper/lower case combination of 'true' and FALSE if the recipient contains an upper/lower case combination of 'false'. The version at block returns a block containing the string as a message. This message is called by the 'as:' message at String.Type: Method          Returns: Object
Also Defined At:
| Block | Date | Number | Object | String | Undefined |

Synopsis:Boolean defaultInstanceDescription:
Returns the default instance for the recipient's class.Type: Constant          Returns: String
Also Defined At:
| Block | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:FALSE defaultInstanceDescription:
Returns the default instance of the recipient object's classType: Constant          Returns: FALSE
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:TRUE defaultInstanceDescription:
Returns the default instance of the recipient object's classType: Constant          Returns: TRUE
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:FALSE ifFalse: aBlockDescription:
Executes supplied Block.Type: Primitive          Returns: Object
Parameters:
1 - Block

Synopsis:TRUE ifFalse: aBlockDescription:
Never executes.Type: Constant          Returns: Undefined
Parameters:
1 - Block

Synopsis:FALSE ifFalse: block1 else: block2Description:
Executes supplied FALSE block.Type: Method          Returns: Object
Parameters:
1 - Block
2 - Block
Also Defined At:
| Object |

Synopsis:FALSE ifTrue: aBlockDescription:
Never executes.Type: Constant          Returns: Undefined
Parameters:
1 - Block

Synopsis:TRUE ifTrue: aBlockDescription:
Executes supplied BlockType: Primitive          Returns: Object
Parameters:
1 - Block

Synopsis:TRUE ifTrue: block1 else: block2Description:
Executes supplied TRUE block.Type: Method          Returns: Object
Parameters:
1 - Block
2 - Block
Also Defined At:
| Object |

Synopsis:FALSE ifTrue: aBlock ifFalse: aBlockDescription:
Executes supplied 'False' Block.Type: Primitive          Returns: Object
Parameters:
1 - Block
2 - Block

Synopsis:TRUE ifTrue: block1 ifFalse: block2Description:
Executes supplied TRUE block.Type: Primitive          Returns: Object
Parameters:
1 - Block
2 - Block

Synopsis:FALSE ifTrue: block1 ifFalse: block2 else: block3Description:
Executes supplied FALSE block.Type: Method          Returns: Object
Parameters:
1 - Block
2 - Block
3 - Block
Also Defined At:
| Object |

Synopsis:TRUE ifTrue: block1 ifFalse: block2 else: block3Description:
Executes supplied TRUE block.Type: Method          Returns: Object
Parameters:
1 - Block
2 - Block
3 - Block
Also Defined At:
| Object |

Synopsis:Boolean isBooleanDescription:
Returns a TRUE value when sent to any boolean.Type: Constant          Returns: TRUE
Also Defined At:
| Object |

Synopsis:FALSE isFALSEDescription:
Returns the string 'TRUE'Type: Constant          Returns: TRUE
Also Defined At:
| Object |

Synopsis:FALSE isFalseDescription:
Returns False unless object is the Boolean value False.Type: Constant          Returns: TRUE
Also Defined At:
| Object |

Synopsis:TRUE isTRUEDescription:
Returns the String 'TRUE' when sent to TRUE.Type: Constant          Returns: TRUE
Also Defined At:
| Object |

Synopsis:TRUE isTrueDescription:
Returns False unless object is the Boolean value TRUE.Type: Constant          Returns: TRUE
Also Defined At:
| Object |

Synopsis:Boolean newDescription:
Invalidates the 'new' message' which is not valid for this classType: Method          Returns: Boolean
Also Defined At:
| Collection | DateRange | Dictionary | Object | Undefined |

Synopsis:FALSE notDescription:
Returns TRUEType: Constant          Returns: TRUE
Also Defined At:
| Undefined |

Synopsis:TRUE notDescription:
Returns FALSEType: Constant          Returns: FALSE
Also Defined At:
| Undefined |

Synopsis:Boolean print: fDescription:
Prints the recipient object using the supplied format. By default, classes ignore the format and send the unary print message. Classes that can sensibly use the format will redefine the print: message.Type: Method          Returns: Object
Also Defined At:
| Date | Entity | Number | Object | String | Undefined |

Synopsis:Boolean whatAmIDescription:
Returns the string 'Boolean'.Type: Constant          Returns: String
Also Defined At:
| Block | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:FALSE whatAmIDescription:
Returns the string 'FALSE'.Type: Constant          Returns: String
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:TRUE whatAmIDescription:
Returns the string 'boolean'.Type: Constant          Returns: String
Also Defined At:
| Block | Boolean | Classification | Collection | Currency | Date | DateOffset | DateRange | Dictionary | Entity | IndexedList | Interface | List | Number | Object | OpenVision | Schema | String | TimeSeries | Undefined | Utility |

Synopsis:FALSE || aBooleanDescription:
Returns TRUE if parameter is TRUE. Note that if parameter is a block, it is evaluated first.Type: Method          Returns: CoreWorkspace
Parameters:
1 - Boolean
Also Defined At:
| Undefined |

Synopsis:TRUE || aBooleanDescription:
Returns TRUE independent of parameter.Type: Method          Returns: Boolean
Parameters:
1 - Boolean
Also Defined At:
| Undefined |