ELENA code block consists of a sequence of statements. The block is enclosed in square brackets and may contain nested sub code blocks (which in fact are inline action classes). The statement terminator is a dot.
When a method should return a result (other than self) return statement is used. It should be the last statement in the block.
If the code block contains only return statement the simplified syntax can be used:
or there is an alternative block expression
Note: it should not end with the terminator symbol
It is possible to declare the block variable and assigns the value to it. The variable name must be unique within the code block scope.