Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

howto non_existance- check?

 [1/2] from: riachtchenko::docutec::de at: 14-Dec-2000 18:30


Hi all, sorry, i certainly could 've seen the solution - but coud't find it now ;-)
>> f: func [w ] [either [ value? 'w ] [ do 'w][print "no way..."]] >> value? 'm
== false
>> x
== 10
>> f x
== 10
>> f m
** Script Error: m has no value. ** Where: f m
>> f 'm
== m
>>
thank you Sascha

 [2/2] from: al:bri:xtra at: 15-Dec-2000 7:14


Sascha wrote:
> sorry, i certainly could 've seen the solution - but couldn't find it now
;-)
> >> f: func [w ] [either [ value? 'w ] [ do 'w][print "no way..."]] > >> value? 'm
<<quoted lines omitted: 10>>
>> f: func ['w] [either value? w [do w][print "no way..."]] >> f xyz
no way...
>> z: does [print "hi!"] >> f z
hi! Andrew Martin Yes, way... ICQ: 26227169 http://members.nbci.com/AndrewMartin/

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted