34,333
edits
Changes
→Boolean Logical Operators
if ((10 < 20) || (20 < 10))
System.Console.WriteLine("Expression is true");
</pre>
The AND (&&) operator returns ''true'' only if both operands evaluate to be true. The following example will return ''false'' because only one of the two operand expressions evaluates to'' true'':