A
A
Alex Sokol2019-02-12 14:49:52
1C-Bitrix
Alex Sokol, 2019-02-12 14:49:52

Why doesn't CIBlockElement::GetList filter?

Does not filter CIBlockElement::GetList by "<=PROPERTY_7"=>2000 $arFilter = Array("IBLOCK_ID" => 1, "ACTIVE_DATE" => "Y", "ACTIVE" => "Y","<=PROPERTY_7" =>2000,"PROPERTY_CITY"=>3);
PROPERTY_7 - number, required, non-multiple

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2019-02-12
@jasper-blondin

At first glance, you have the correct code. For the purity of the experiment, you can write instead of the property ID (you have 7) its symbolic code:
Make sure you build the logical condition correctly. Your filter specifies to select all elements whose property value with ID=7 is less than or equal to 2000.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question