In your case, since bSuccess is bool, then
if(true & bSuccess) exactly the same as if(true && bSuccess)
However, if you would use this:
short i = 3; short k = 1;
if(i & k) result will be true:
0000 0000 0000 0011 & 0000 0000 0000 0001 ------------------- 0000 0000 0000 0001 true
& works on separate bits, and here bit 1 is the same in both cases, so you will get true as a result.
Hope this helps.
source share