>>  <<  Ndx  Usr  Pri  Phr  Dic  Rel  Voc  !:  wd  Help  Dictionary

return.

return. exits a verb, adverb, or conjunction.

The result of an explicit definition is the result of the last executed sentence that was not in a test block. If there is no such executed sentence, the result is i. 0 0 .
 

For example:
f=: 3 : 0
 try.
  if. 0<:y. do. 'positive' return. else. t=.'negative' end.
 catch.
  t=.'caught'
 end.
 'it is ',t
)

   f 7
positive

   f _12
it is negative

   f 'deipnosophist'
it is caught

   (i.0 0) -: 3 : 'return.' 999
1

   g=: 3 : 'if. 13=|y. do. ''triskaidekaphobia'' end.'

   g 13
triskaidekaphobia

   g 5
   (i.0 0) -: g 5
1


>>  <<  Ndx  Usr  Pri  Phr  Dic  Rel  Voc  !:  wd  Help  Dictionary