code:
$a=''
$rc=test1()
? 'a'=$a
? 'rc='+$rc
? ''+@ERROR+' - '+@SERROR
$rc=test2()
? 'a'=$a
? 'rc='+$rc
? ''+@ERROR+' - '+@SERROR
function test1($a)
$test1=''
if not $a
return
else
; stuff
endif
endfunction
function test2($a)
$test2=''
if not $test2
exit 87
else
;stuff
endif
endfunction

Difference:
The first function call does not set an appropriate rerror code whereas the second call rteturns an appropriate error code which canthen be tested for.
_________________________
There are two types of vessels, submarines and targets.