Login  Register

Re: Non-evaluating and / or

Posted by Jan Blizničenko on Apr 03, 2015; 7:52pm
URL: https://forum.world.st/Non-evaluating-and-or-tp4817211p4817419.html

Of course, how could I have missed it before, thank you both :)

Jan

Blondeau Vincent wrote
Hello,

You should but a block after "and:".
If you don't, the instruction will be always executed...
The block represents a kind of conditional action.

So if you want to do it works :
false and: [ Transcript open ]

Hoping that it will help,

Best,
Vincent BLONDEAU
Peter Uhnák wrote
Hi,

that's because you need to pass a block, since you want to postpone to
execution.
i.e. false and: [Transcript open]. (otherwise the binary operation
Transcript open will take precedence over keyword false and:)
You can always look at the implementation of those things — I always learn
something from it. :)

»and: alternativeBlock«

Peter