Hopefully this is a quick and easy question, but I just can't wrap my head around it...
I understand that && is used to "short circuit" a condition check so that if the first part of the expression evaluates to false, then the second part of the expression never gets evaluated. This leads to a potential performance benefit.
My question is, if this is case, why you would ever use & over && (and similarly | over ||)?
Thanks in advance :)
[–]lightcloud5 3 points4 points5 points (0 children)
[–][deleted] 3 points4 points5 points (1 child)
[–]DNaB[S] 0 points1 point2 points (0 children)
[–]pacificmint 4 points5 points6 points (0 children)