javascript の if/else ステートメントに基づいて変数の値を変更できますか?
var $nextLink = $this.next().attr('href'),
$currentLink = $this.attr('href');
if ($currentLink == $nextLink){ // Check if next link is same as current link
var $nextLoad = $this.eq(2).attr('href'); // If so, get the next link after the next
}
else {var $nextLoad = $nextLink;}