From: Peter Bailey Date: 2007-07-19T21:45:57+09:00 Subject: Re: using "NOT" in File.exists? Alex Young wrote: > Peter Bailey wrote: >> pngthere = not File.exists?("L:/png/#{pngdir}/#{pngfile}") >> >> in IRB. . . . >> not File.exists?("L:/png/#{pngdir}/#{pngfile}") >> works fine. >> > Try: > > pngthere = !File.exists?("L:/png/#{pngdir}/#{pngfile}") Ahhh, simple, of course. You're a prince. Thanks ! -- Posted via http://www.ruby-forum.com/.