Solved IfElse Problem