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

[REBOL] Re: Comparing path!

From: carl:cybercraft at: 31-Aug-2002 14:05

On 31-Aug-02, Robert M. Muench wrote:
> Hi, I'm sure this is again one of those things where I'm just not > smart enough... I would expect 'true instead of 'false with this > code: >>> test: [type contact/company] > == [type contact/company] >>> text: "contact_company" > == "contact_company" >>> (select test 'type) = (to-path replace text "_" "/") > == false > Any idea? I tried this with to-lit-path as well but no luck too... > Robert
Lots of answers already, but I didn't see any suggesting to replace the "/" with a " "...
>> test: [type contact/company]
== [type contact/company]
>> text: "contact_company"
== "contact_company"
>> (select test 'type) = (to-path replace text "_" " ")
== true Works on the non-beta View, at least. (; -- Carl Read