Using Math.abs() in the if/then