I'm having trouble getting the conditional function to work.