$arSelect = Array("*");
$arFilter = Array("IBLOCK_ID"=>$IBLOCK_ID, "PROPERTY_BRAND"=>$BRAND_ID);
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array(), $arSelect);
while($ob = $res->GetNextElement()) {
$arFields = $ob->GetFields();
print_r($arFields);
}
$name = 'название';
$arSelect = Array("*");
$arFilter = Array("IBLOCK_ID"=>IntVal($yvalue), "NAME"=>$name);
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array(), $arSelect);
while($ob = $res->GetNextElement()){
$arFields = $ob->GetFields();
print_r($arFields);
$arProps = $ob->GetProperties();
print_r($arProps);
}