When you first use it you save it and use a local variable for the first part.
Code:
function test(Main, Condition)
{
var iMain = Main * (-1);
//Calculations;
if (Condition)
{
iMain = Main;
}
var iNew = iMain * 2; //Or whatever
}
Hope this still isn't those quadratics...
--
Joe