Hi Anssi,
I think that you are looking for Name Class foreign conjunction 4!:0
t
|value error: t
s=:5
s;t
5 ; t
t;s
|value error
| t;s
4!:0 <'s'
0 NB. noun
4!:0 <'t'
_1 NB. unused
When the unused name is at the end I think that J is doing its usual trick of
assuming it is a verb, which is why it complains if it is earlier in the
sentence and can't be evaluated
Cheers, bob
> On Sep 4, 2019, at 11:24 PM, Anssi Seppälä <[email protected]> wrote:
>
> Keeping data in structure with ; is a great thing. However I do not
> understand the logic to get value error:
>
> value=: 123
>
> novalue
> |value error: novalue
>
> (1 2 3);'abc';value;novalue
> 1 2 3 ; 'abc' ; 123 ; novalue NB. No value error with novalue
>
> (1 2 3);'abc';novalue;value
> |value error: novalue NB. Now J gives value error with novalue
> | (1 2 3);'abc'; novalue;value
>
> Is there any method to always observe that novalue is not defined?
>
> Regards,
> Anssi
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm