Create the filter for boolean