This is an issue of the user interface: It allows you to only enter one statement into the "Expression" box. But you entered five. You would have to enter each SCOPE
and END SCOPE
, as well as the assignment to This
into a separate calculation.
It may be easier to enter this type of calculation in Script view, where you see the complete calculation script as one long text, and not each statement in a separate dialog. You can switch between these views with a button in the toolbar.