If OR condition tracking

Why not just make it a 'while( pass_code == 0 ) {' ?

... since that is the actual logic that you are testing...