Combinational logic

Logic operators are used to create combinational logic expressions.

The evaluation rules regarding combinational logic expressions are given below.

Assume that X and Y are Boolean variables or expressions that evaluate to the Boolean values of true and false:

 

The logical AND operator (&&)

X && Y    evaluates to true if both X and Y are true, and false otherwise.