!( 1 < 8 && ( 5 > 2 || 3 < 5))
The inner most brackets are tackled first.
( 5 > 2 || 3 < 5)
Only one of the operands needs to be true for a yield of true. In this case both are, but since the first one is true, the second one is never evaluated.
We still cannot apply NOT (!) since there are still brackets.
!( 1 < 8 && true )
Since the first operand is true, the result is true. That leaves,
which toggles to
In Canadian schools a popular acronym in algebra is
BEDMAS which can be shortened to
BEMA since division is multiplication, and subtraction is addition.
In logical expressions, when there are no brackets,
! true || true && true
in the above,
! true is evaluated first.
false || true && true
Next, the and expression is evaluated
false || true
And we know what this will yield...