MOVED: if else problem

This topic has been moved to Programming Questions.