Everything works however the when I put a capital letter it gets an error in the first 3 letters aswell but i dont understand why because the statement that messes it up is about the last 3 digits ánd has nothing to do with the first 3.
in c++ zero is false, and everything else is not false.
so the first one is
false and true and true = false.
the second one is
true and true and true = true.
the collapsed values (false for the first, true for the second) are then passed forward.
0&&1&&2 is actually a function which returns true/false
This (the built-in operator &&) is not a function (and neither is the expression 0&&1&&2). This is an important distinction because the built-in operator && evaluates its arguments in order such that short-circuiting evaluation (See: https://en.wikipedia.org/wiki/Short-circuit_evaluation ) is possible. Function arguments, however, are evaluated in unspecified order.
Also important is to note that && is left-associative, so 0&&1&&2 is equivalent to ((0 && 1) && 2).