Thanks Gregg, I came to the same solution but ... load fails with some value:
>> s: "recipes/0001.html" == "recipes/0001.html" >> s == "recipes/0001.html" >> load s ** Syntax Error: Invalid decimal -- 0001.html ** Near: (line 1) recipes/0001.html And I have no idea how to workaround this easily. Regards Patrick ----- Original Message ----- From: Gregg Irwin <[EMAIL PROTECTED]> To: patrick <[EMAIL PROTECTED]> Sent: Saturday, October 04, 2003 6:48 PM Subject: [REBOL] Re: url or file ? > > 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 > > -- > To unsubscribe from this list, just send an email to > [EMAIL PROTECTED] with unsubscribe as the subject. > -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.