error-flag = . ..

products = filter products ( product + take ->
                                               if (product.price < level) -> take = 1

                                               if (product.price >= max-level) -> error-flag = ERR_PRICE, leave all
                                               else iterate
                           )