P2Boolean

A boolean object.

Factory Messages

Operational Messages

& aBoolean

Answers a boolean being the receiver AND aBoolean

| aBoolean

Answers a boolean being the receiver OR aBoolean

ifTrue: aBlock

Executes aBlock if the receiver is true. Answers the value of aBlock or Nil. No arguments are given to the block.

ifFalse: aBlock

Executes aBlock if the receiver is false. Answers the value of aBlock or Nil. No arguments are given to the block.

ifTrue: aBlockTrue ifFalse: aBlockFalse

Executes aBlockTrue if the receiver is true otherwise aBlockFalse is executed. Answers the return value of the block that is executed. No arguments are given to the block to be executed.

ifFalse: aBlockFalse ifTrue: aBlockTrue

Executes aBlockFalse if the receiver is false otherwise aBlockTrue is executed. Answers the return value of the block that is executed. No arguments are given to the block to be executed.