WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Go - Logical Operators


The following table lists all the logical operators supported via Go language. Assume variable A holds 1 and variable B holds 0, then
Operator Description Example
&& Called Logical AND operator. If both the operands are non-0, then situation becomes true. (A && B) is falsethe two operands is non-zero, then condition will become genuinegenuine.
! Called Logical NOT Operator. Use to reverses the logical state of its operand. If a circumstance is proper then Logical NOT operator will make fake. !(A && B) is actual.
The following desk suggests all of the logical operators supported with the aid of Go language. Assume variable A holds authentic and variable B holds fake, then
Operator Description Example
&& Called Logical AND operator. If each the operands are fake, then the condition becomes false. (A && B) is fakethe 2 operands is authentic, then the circumstance turns into actual. (A true.
! Called Logical NOT Operator. Use to reverses the logical country of its operand. If a situation is real, then Logical NOT operator will make it false. !(A && B) is real.