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