if Dir.exist? './abc' && Dir.exist? './def' puts 3 else puts 4 end
Standard input is empty
Standard output is empty
prog.rb:1: syntax error, unexpected tSTRING_BEG, expecting keyword_then or ';' or '\n' if Dir.exist? './abc' && Dir.exist? './def' ^ prog.rb:3: syntax error, unexpected keyword_else, expecting end-of-input