Sunday, May 26, 2019 17:04

Posts Tagged ‘logical operators’

Logical operators

Friday, January 6th, 2017

Logical operators are quite simple, since they can only produce two outputs: true or false. The basic logical (Boolean) operators are AND (&&), OR (||),  XOR (also called “Exclusive OR”, ^) and NOT (or negation, !).

I will show you a sample of the four logical operations and the results that they produce: