function with condition

A post was merged into an existing topic: function and ifelse