Re: either or

2001-10-23 Thread Christopher Solomon
On Wed, 24 Oct 2001, birgit kellner wrote: > I'm sure this has been covered billion times: > Until recently, I assumed that the binary operator "||" functions as > either-or. Now I read that it evaluates the left side and, if it evaluates > true, doesn't care

Re: either or

2001-10-23 Thread Jeff 'japhy' Pinyan
On Oct 24, birgit kellner said: >My understanding is that either-or (i.e. excluxive or) on strings would >best be done with "xor". Is that correct? Yes, use 'xor'. There is no ^^ (like there is && and ||). -- Jeff "japhy" Pinyan [EMAIL PROT

either or

2001-10-23 Thread birgit kellner
I'm sure this has been covered billion times: Until recently, I assumed that the binary operator "||" functions as either-or. Now I read that it evaluates the left side and, if it evaluates true, doesn't care about the right. So if I want to test whether either $one or $two