a &&= b - short form (aka syntactic sugar) for:
a && a = b
This short form is provided for operators (including but not limited to) + , - , / , * , % , ** , ^ , << , >> , & , | , && , || (@ Stefan credits for a complete list of supported operator shortcuts ):
a = 5 a += 5 #⇒ 10 a = true a &&= true #⇒ true a &&= false #⇒ false
&& is logical and aka " conjunction " unlike || which is logical or aka " disjunction .
source share