> Is it possible to make compound if statements in Ruby, something like: > > if field[0] == "AIX" or if field[2] =~ /ldap/ > puts "BLAH" > end > > (but different, of course, since the above doesn't work.) Don't repeat the if. It's like most languages. if field[0] == "AIX" or field[2] =~ /ldap/ puts "BLAH" end You can also use || as in C. There are some differences, but in this case they'd work identically. Hal