From: nobu.nokada@... Date: 2002-07-23T15:12:13+09:00 Subject: Re: How to text if any array fields are null...and stop execution... Hi, At Tue, 23 Jul 2002 14:41:39 +0900, Kurt Euler wrote: > 1) Is there a quick way to any of several array fields are null? > > Pseudo: If field[1] or field[2] or field[3] or field[4] or field[5] == "" > do something > end > > 2) Also, what's the programmatic way to bail from a > program. Is it just a line that says "quit" or something? (In > the present case, if any of the fields in #1 above are null, > I want to stop the program. if field[1..5].find {|f| f == ""} exit end -- Nobu Nakada