I can't get the condition to work