From: Sebastian Hungerecker Date: 2008-01-12T00:18:40+09:00 Subject: Re: if statement with multiple conditions Katsuo Isono wrote: > Hi, I am pretty new to programming. What is the good way to write the > following condition. > > def cart > if request.post and @cart.size < 10 > puts "order accepted" > else > redirect_to :action => 'list' > end > end That's a perfectly reasonable way to write it. -- Jabber: sepp2k@jabber.org ICQ: 205544826