repeat, if, ifelse operators