ifThenElse added to Rep DSL. Tests added