EstimatedVal が空の場合、変数 EstimatedVal を avgList に置き換えたいと思います。以下のコードでは何も起こらないため、コードに何か問題があります。if ステートメントを削除すると、他のすべてが機能します。
$('#estimatedVal').html($(context).find('ul.estimates a:eq(1)').text()
+ ' - ' + $(context).find('ul.estimates a:eq(0)').text());
if(estimatedVal == ' - '") {
$('#estimatedVal').html(avgList);
} else {
$('#estimatedVal').html(estimatedVal);
}
if ステートメントを使用できるようにするには、何をする必要がありますか?