&&
and
||
or
!
not
&& command
if (x == 1 && y == 2){ some command}
|| command
if ( x == 1 || y == 2){ some command}
! command
if (!x){ some command}
&& true or false
x = T and y = F: returns Fx = T and y = T returns Tx = F and y = F: returns Fx = F and y = T: returns F
|| true or false
x = T and y = F: returns Tx = T and y = T: returns Tx = F and y = F: returns Fx = F and y = T: returns T
! true or false
int x = true;int y = false;!x = false!y = true