Allow if/else in rterms

refs #8074