From: email55555@... Date: 2005-08-11T01:01:19+09:00 Subject: Re: Stock Portfolios (#41) James Edward Gray II wrote: > if portfolio.empty? or not ARGV.empty? and ARGV.first == "-p" Typo error ? The way you wrote: if portfolio.empty? or not ARGV.empty? and ARGV.first == "-p" Will treat like: if (portfolio.empty? or not ARGV.empty?) and ARGV.first == "-p" I guess you would like to say: if portfolio.empty? or (not ARGV.empty? and ARGV.first == "-p") Note: && has higher precedence than || but "or" "and" both are the same precedence.