if you want it to loop when they are both false, and break when at least one is true
while ( Bool1 == false && Bool2 == false )
I think your confusion is coming from the fact that you're using a while loop and not an if statement, the condition in the brackets is what you want to be true in order to go into the loop, not when to break out of the loop