implement the ifElse tag.