if else practice

it will not check variable until it runs to there.