Re: [Tutor] or synxtax in if statement

2007-08-31 Thread Brian Wisti
On 8/31/07, David Bear <[EMAIL PROTECTED]> wrote: > > I think I want to be lazy and express this > > if a == b | a = c > (if a equal b or a equals c) > using > > if a == b | c > > it seems to work.. but I'm not sure if it is correct -- and I haven't seen > any documentation on using this type of sy

Re: [Tutor] or synxtax in if statement

2007-08-31 Thread Eric Brunson
David Bear wrote: > I think I want to be lazy and express this > > if a == b | a = c > (if a equal b or a equals c) > using > > if a == b | c > > it seems to work.. but I'm not sure if it is correct -- and I haven't seen > any documentation on using this type of syntax. > > > The pipe is the "bi

Re: [Tutor] or synxtax in if statement

2007-08-31 Thread Smith, Jeff
That definitely won't work. How could the language possibly determine if you meant a == b | a == c as opposed to the literal a == b | c What this becomes is a == (b | c) Also be aware that | is a "bitwise or" and not a logical "or" which may not be what you want. So your original expressio