added ifThenElse()