Uwe Stöhr wrote:
Andre Poenitz schrieb:
Why that? In Delphi I use such contructs very often. The syntax would
then be
if (a = 1) and (b = 1) and
( (C = "bla") or (C = "blub") ) then
So I assumed that this is possible in C++ too.
I still see an 'or'.
Yes of course. I don't want to let it go. I just want to have
if (a = 1) and (b = 1) and
( (C = "bla") or (C = "blub") ) then
instead of
if (a = 1) and (b = 1) and
(C = "bla") or (C = "blub") then
That means the third "and" contains the "or" comparison.
You need to enclose the full expression between brackets.
if (a == 1 && b == 1 && (C == "bla" || C == "blub")) {
...
}
I am not sure I understand your question though...
Abdel.
regards Uwe