Created if else task.