From: "kim.toms@..." Date: 2007-10-17T21:51:53+09:00 Subject: Re: Compound conditionals in case when statements? Syntax? I use: case true when a == b && c == d when a != b && c == d ... end On Oct 16, 6:39 pm, Randy Kramer wrote: > I need (or want ;-) to do something like the following: > > when ((/^---\+\+ (.*)/) and (new_record == true)) > > I've tried a lot of variations, but either this just won't work, or I haven't > managed to guess the proper syntax. (I've also tried googling and searching > in the pickaxe(2).) > > Aside: Maybe the compound won't work because one is what the pickaxe calls a > condition and the other is a comparison? But, I'm not sure which is which. > > If this can't work, I'll try (I've been trying) a nested if statement, but > I'll ask about that in my next post. ;-) > > Randy Kramer