comparison operator & logical operator

==
When the values are the same, the program answers true.

operator1's photo

!=
When the value is not the same, the program answers true.

operator2's photo

operator3's photo

>

operator4's photo

<

operator5's photo

num == str
Even when data type is different but the value is the same, the program answers true.

operator6's photo

===
When both of the value and data type are the same,
the program answers true.

operator7's photo

&&
When both are true, the program answers true.

operator8's photo

operator9's photo

||
When either is true, the program answers true.

operator10's photo

operator11's photo