Apparently there's a similar syntax for elseif. as well: instead of

   3 :'if. 0 do. 1 elseif. 0 do. 2 elseif. 1 do. 3 end.' 0

this works as well:

   3 :'if. 0 do. 1 elseif. 0 do. 2 elseif. do. 3 end.' 0

I've expected the following to work as well but it turns out to give a
control error.

   3 :'if. 0 do. 1 elseif. 0 do. 2 else. 3 end.' 0

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

Reply via email to