According to the dictionary you must have a do. follow the T-block. . I'm surprised this didn't get flagged as an error.
t0=.3 :0 0 if. 0 NB. Need a do. here if. 0 do. 1 end. do. 1 end. ) t0 '' On Thu, Nov 4, 2010 at 12:14 AM, Raul Miller <[email protected]> wrote: > On Wed, Nov 3, 2010 at 9:49 PM, bill lam <[email protected]> wrote: > > I guess the sentence > > if. 0 do. 1 end. > > actually evaluated to i.0 0 which becomes the last value for the entire T > > block. > > I think you are correct. > > 3 :'if.0 do.1 end.' '' > $3 :'if.0 do.1 end.' '' > 0 0 > 3 :'if.i.0 0 do.1 end.' '' > 1 > > -- > Raul > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
