Pregunta de entrevista de Walt Disney Company

How do you create an if/else>then push function?