I try to filter users by several parameters:
There are three checkbox properties that each user has affixed. Bitrix filter works like this: GROUP1 AND GROUP2 are ticked, it shows the users who have the tick at the same time and that and this group. If I need to display the Users GROUP1 OR GROUP2 then it stops showing.
$test_value = Array( array( "LOGIC" => "OR", "UF_TMC1" => $filter1["UF_TMC1"], "UF_TMC2" => $filter2["UF_TMC2"], "UF_TMC3" => $filter3["UF_TMC3"], ), "GROUPS_ID" => "7", ); $arSelect = array('SELECT' => array('UF_SURNAME', 'UF_NAME', 'UF_MIDNAME', 'GROUP_ID', 'UF_TMC1', 'UF_TMC2', 'UF_TMC3')); $rsUsers = CUser::GetList(($by="ID"), ($order = "asc"), $test_value, $arSelect); while($reg = $rsUsers->Fetch()){ $arUses = $reg; $mailUser11[] = $arUses["EMAIL"]; }
LOGIC => ORexists forCUser::GetList? - u_mulder