you can return empty values by [.. return] or a sort of do[] (if..)
see last line here.

a: func[][
 if error? set/any 'err
 try
 [
   print "yes"
; ba ; test error
;  123 ; with value
 ]
 [
   err: disarm err
   print reform bind (get in (get in system/error err/type) err/id) in err
 'type
 ]
 either value? 'err [err][] 
]

Volker
----
[EMAIL PROTECTED] wrote

> Hello:
> Frequently when I use rebol code that evaluates
> a condition, the interpreter spits out
> == false
> I'd like to be able to suppress that.
> 
> I've got a basic template to trap error messages.
> It goes like this (complements of other list members):
> if error? set/any 'err
> try
> [
>   print "yes"
> ]
> [
>   err: disarm err
>   print reform bind (get in (get in system/error err/type) err/id) in err
> 'type
> ]
> since the code: print "yes" is syntactically correct, 
> I get "== false" in the output.
> How do I get rid of that?
> 
> Thanks
> Tim
> 
> 
> 
> 
> 

Reply via email to