On Wed, Nov 3, 2010 at 6:16 PM, Henry Rich <[email protected]> wrote:
> tvb =: 3 : 0
>   if. 0 do.
>     0
>   elseif. 0 if. 0 do. 1 end. do.
>     1
>   elseif. do.
>     2
>   end.
> )
>    tvb ''
> 1
>
> I was expecting 2.

This looks odd, but I am not sure it is a bug:

You have an empty sentence after the nested if
sentence, and I think empty sentences are treated
as true.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to