Skip to content

Logical AND Assignment

Logical AND assignment operator (&&=) can be used to perform logical AND operation and assign it to a variable.

Syntax
variable &&= expr
Example
a &&= true
b &&= false