If condition in a return statement
<p>I need to make a if statement with in a function that returns multi-values. I tried this but it's not working. </p>

<pre><code>a(this).attr('src', function(i, current){
    if ( i == 'http://www.old.com'){
        return current.replace('http://www.old.com','http://www.new.com');
    }
    else if ( i == 'http://www.older.com'){
        return current.replace('http://www.older.com','http://www.new.com');
    }
    else ();
});
</code></pre>
