In Pentaho program, using Modified javascript step. Using product.csv file, in unitPrice area, some integer had positive plus some other are negative. In javascript, how do you key in there?

Here the example I typed to date but still a mistake.

 if(unitPrice.getInteger() < 0)
{
    unitPrice.setValue(var) = Math.abs(unitPrice.getInteger());
}