From: Park Heesob Date: 2002-07-23T15:25:56+09:00 Subject: Re: How to test if any array fields are null...and stop execution... Hi, "Kurt Euler" wrote in message news:C47CCC6238EFD4119C5200508B95A100074AF882@cup1ex1.portal.com... > All- > > 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. > puts "abort" or exit if field.indexes(1,2,3,4,5).include?("") > Thanks! > > -k euler > Park Heesob