format_condition function

Format a vector of predicates into a condition string