Thanks for the quick help, Tim!

On Sat, 1 Sep 2007 11:39:58 -0800, Tim Johnson wrote:
>
> On Saturday 01 September 2007, Kai Peters wrote:
>> config-obj:  attempt [ make object! load %my-app.cfg ]
>>
>> probe config-obj/setting1
>>
>> The probe fails if there is no 'setting1 defined in %my-app.cfg
>>
>> Is there a way to test for this before attempting to probe (or doing=
 anything else with it)
>> other than wrapping it in an 'attempt?
>>
> ;; How about 'in ?
>>> o: context[t: 1]
>>> in o 't
> =3D=3D t
>>> in o 'x
> =3D=3D none
>>> either in o 'x[print 'yes][print 'no]
> no
>>> get in o 't
> =3D=3D 1
>
> HTH
> Tim


-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to