I am having trouble with a simple do while statement in which I want the code in the do statement to execute while a is true or while b is false. However the || operator does not seem to be working.
What is the reason for this? Any help would be great :)
This should be fine, == has precedence over ||. There must be some other bug in your code.
Also, here you test if either is false, not if one is true and the other false.