I think there was a flaw in your test. If you can show it, it will be easier to figure out.
I've tried
IF 1=1
SELECT 'True 1=1'
ELSE
IF 2=2
SELECT 'True 2=2'
and only got first select to output.
For every expert, there is an equal and opposite expert. - Becker's Law
My blog