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 == t >> in o 'x == none >> either in o 'x[print 'yes][print 'no] no >> get in o 't == 1
HTH Tim -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
