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:asSelfTRUE && 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:asSelfBoolean 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:asSelfFALSE 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:classDescriptorTRUE 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:classDescriptorBoolean 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:classDescriptorFALSE 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:convertFrom: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:defaultInstanceBoolean 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:defaultInstanceBoolean 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:defaultInstanceFALSE 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:ifFalse: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:ifFalse:FALSE ifFalse: aBlockDescription:
Executes supplied Block.Type: Primitive          Returns: Object
Parameters:
1 - Block
Synopsis:ifFalse:else:TRUE ifFalse: aBlockDescription:
Never executes.Type: Constant          Returns: Undefined
Parameters:
1 - Block
Synopsis:ifTrue:FALSE ifFalse: block1 else: block2Description:
Executes supplied FALSE block.Type: Method          Returns: Object
Parameters:
1 - Block
2 - Block
Also Defined At:
| Object |
Synopsis:ifTrue:FALSE ifTrue: aBlockDescription:
Never executes.Type: Constant          Returns: Undefined
Parameters:
1 - Block
Synopsis:ifTrue:else:TRUE ifTrue: aBlockDescription:
Executes supplied BlockType: Primitive          Returns: Object
Parameters:
1 - Block
Synopsis:ifTrue:ifFalse:TRUE ifTrue: block1 else: block2Description:
Executes supplied TRUE block.Type: Method          Returns: Object
Parameters:
1 - Block
2 - Block
Also Defined At:
| Object |
Synopsis:ifTrue:ifFalse:FALSE ifTrue: aBlock ifFalse: aBlockDescription:
Executes supplied 'False' Block.Type: Primitive          Returns: Object
Parameters:
1 - Block
2 - Block
Synopsis:ifTrue:ifFalse:else:TRUE ifTrue: block1 ifFalse: block2Description:
Executes supplied TRUE block.Type: Primitive          Returns: Object
Parameters:
1 - Block
2 - Block
Synopsis:ifTrue:ifFalse:else: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:isBooleanTRUE 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:isFALSEBoolean isBooleanDescription:
Returns a TRUE value when sent to any boolean.Type: Constant          Returns: TRUE
Also Defined At:
| Object |
Synopsis:isFalseFALSE isFALSEDescription:
Returns the string 'TRUE'Type: Constant          Returns: TRUE
Also Defined At:
| Object |
Synopsis:isTRUEFALSE isFalseDescription:
Returns False unless object is the Boolean value False.Type: Constant          Returns: TRUE
Also Defined At:
| Object |
Synopsis:isTrueTRUE isTRUEDescription:
Returns the String 'TRUE' when sent to TRUE.Type: Constant          Returns: TRUE
Also Defined At:
| Object |
Synopsis:newTRUE isTrueDescription:
Returns False unless object is the Boolean value TRUE.Type: Constant          Returns: TRUE
Also Defined At:
| Object |
Synopsis:notBoolean newDescription:
Invalidates the 'new' message' which is not valid for this classType: Method          Returns: Boolean
Also Defined At:
| Collection | DateRange | Dictionary | Object | Undefined |
Synopsis:notFALSE notDescription:
Returns TRUEType: Constant          Returns: TRUE
Also Defined At:
| Undefined |
Synopsis:print:TRUE notDescription:
Returns FALSEType: Constant          Returns: FALSE
Also Defined At:
| Undefined |
Synopsis:whatAmIBoolean 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:whatAmIBoolean 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:whatAmIFALSE 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 |