You are on page 1of 1

Merge Multiple Conditions Many a times we need to evaluate multiple conditions and result in one boolean answer.

For this we need to merge the conditions using Logical AND (&&) or Logical OR (||) For generating a final answer system uses truth tables of Logical AND / logical OR Truth Table of Logical AND (&&) T && T = T T && F = F F && T = F F && F = F Truth Table of Logical OR (||) T || T = T T || F = T F || T = T F || F = F Priority of Logical AND is higher than that of Logical OR.

You might also like