combine_logic function

combine_logic: Combine multiple logical vectors with a logical operator