Originally Posted by
jpharte
Your result (temp) keeps getting overwritten with each loop, so what will happen is temp will really only be set by the last comparison (3 versus 7 in this case). You might want to initialize temp with true and assign it as temp=temp&true and temp=temp&false (the latter of course can just be temp=false).
Okay, I understand the reasoning behind it, but I do not understand the &true thing. What is that? I haven't seen that before.
I only seen temp=true or temp=false
but not temp=temp&true.