From: Peter Bailey Date: 2007-07-19T21:35:06+09:00 Subject: using "NOT" in File.exists? Hello, I want to create a boolean variable for a "not" statement. When I do a "not File.exists?" in IRB, it works fine. But, it doesn't work when it's part of a variable declaration. Can someone help me to create a truth variable for a statement like this? Thanks, Peter doesn't work in script. . . . pngthere = not File.exists?("L:/png/#{pngdir}/#{pngfile}") in IRB. . . . not File.exists?("L:/png/#{pngdir}/#{pngfile}") works fine. -- Posted via http://www.ruby-forum.com/.