I am very inexperienced at scripting but I need a script to show a zero if a number goes negative. So what I have is:
$.rawValue = X - Y
But I need rawValue to never show a negative number, only a zero when that value becomes a negative. Otherwise, show the value.
You can use the following script to display ZERO instead of negative numbers.
var FinalValue = X-Y;
$.rawValue = 0;
$.rawValue = FinalValue;
Which event are you writing the code?