Pergunta de entrevista da empresa Walt Disney Company

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