[SOLVED] Convert an item negative value to 0 (zero)

Ahh okay I see now… Thanks Vincent. I´ll give it a try when I get back home tonight.

EDIT- It seem to work fine with Rich´s scripts and Rossko´s/Vincents corrections of my mistakes…
Thank you very much guys!

Probably. I very rarely touch JavaScript so usually the most primitive approach ends up in the code.If Nashorne supports Math.max then you can do that.