Also, there are workarounds that are not too awkward and don't encourage
the use too much.

   (3 : 'if. ... do. ... else. ... 2 end.') ''

And the new {{{...}}} in 903 might be more direct.

On Mon, Jul 12, 2021 at 1:24 PM Henry Rich <[email protected]> wrote:

> Because the control structures must be parsed and thus must be present
> in full.  Normal interpretation happens line by line.
>
> Consider using
>
> ".^:condition 'sentence'
>
>
> Henry Rich
>
> On 7/12/2021 12:51 PM, 'Rudolf Sykora' via Programming wrote:
> > Dear list,
> >
> >
> > what is the primary reason for the limitation that control structures
> > like if., select. etc. can only be used from within functions, ie., not
> > directly on the top level of a script.
> >
> >
> > Thank you
> > Rudolf Sykora
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
>
> --
> This email has been checked for viruses by AVG.
> https://www.avg.com
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to