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

[REBOL] Re: url or file ?

From: greggirwin:mindspring at: 4-Oct-2003 10:48

Hi Patrick, p> But what if these came as strings
>>> test: ["http://www.rebol.net" "index.html"]
p> == ["http://www.rebol.net" "index.html"]
>>> url? first test
p> == false
>>> file? second test
p> == false p> In my case, I have to decide between url and file. How can i do? How about this?
>> url? load "http://www.rebol.net"
== true
>> url? load "index.html"
== false OK, so this gives you a choice of URL or not-URL, but it still might work. :) -- Gregg