ifelse exercise completed