posted 21 years ago
when use b=true, you assign true to reference b regardless its previous value. Code segment inside if(b=true) { } will be executed as it evaluated to TRUE.
when use b==true, you compare if b equal to true, in your case, code segment inside if(b==true) {} will also be executed as the comparsion result is TRUE.
not so smart guy still curious to learn new stuff every now and then