April 2, 2015
4:12 p.m.
Le 2 avr. 2015 à 18:02, Max Leske <maxleske@gmail.com> a écrit :
On 02 Apr 2015, at 17:31, Peter Uhnák <i.uhnak@gmail.com> wrote:
^ (a=b) ifTrue: [ aBlockCheckingConditions].
Boolean is still just an object, so you can use a cascade ^ (a=b) ifTrue: [ aBlockCheckingConditions]; yourself
But that will always return the the boolean from the first statement! If you want to return something from the conditions block you canât do that.
An alternative might be
^ a = b and: [ condition ]
Yes!! Good idea. Thanks. Anne
Peter