[Jprogramming] Is variable defined

Ric Sherlock tikkanz at gmail.com
Fri Mar 11 00:26:55 UTC 2016


The foreign conjunction you're after is 4!:0
   blah=: 403
   4!:0 <'blah'
0
   4!:0 <'notblah'
_1


The verb type is defined in the stdlib that is loaded at startup so:
   type 'blah'

+----+

|noun|

+----+

    type 'blahnot'

+-----------+

|not defined|

+-----------+




On Fri, Mar 11, 2016 at 1:19 PM, Ryan Eckbo <eckbo at cim.mcgill.ca> wrote:

> I seem to remember that there's a way to check whether a variable has been
> defined or not,
> but I can't find the method.  Does anyone know?
>
> Thanks,
> Ryan
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list