Update if clause (Switched) and added space after condition