let's say I have a statement
if(stack.pop() == 1 && stack.pop() == 1)
if top of stack is 0, then the second condition won't be implemented, which means it just pops one value at the top. What I want is to pop both, the top and the value after top. Is there any way to do that without using another if-else statement in it?