Sunday, March 2, 2014

Conditional Operators_Notes: (Wk-3), Jan 22, 2014

Conditional Operators: AND, OR allow to combine 2 or more boolean expressions to form a single boolean expression.

In C#
AND operator is expressed as &&
OR operator is expressed as | |

AND = && (implies all the conditions need to happen / be true)
OR = | | (implies only one condition need to happen / be true)

No comments:

Post a Comment