![]() |
![]() |
![]() |
![]() |
![]() |
|
For example, in a conditional expression, a message, such as the
ifTrue: message, is sent to a receiver, true or
false, that is produced by a Boolean expression. Following the
ifTrue: selector in the ifTrue: message, you find one or more
statements surrounded by brackets:
Boolean expression ifTrue: [statements]
Whenever ifTrue: is sent to true, the ifTrue: method
evaluates the statements between the brackets. Whenever ifTrue: is
sent to false, ifTrue: ignores the statements between the
brackets.