This means that if x was greater than 10 and thus the first line called myTag , and myTag contains if statements, then the behavior of the else depends not on the if in the line above it but on the last if evaluated inside of myTag !