I'm trying to validate user entered values as being within a range that is equal to a prior user entered number plus/minus constant numbers but the script seems to only recognize the lower bound of the range and the upper bound is always the prior user entered number plus any value less than one (aka user entered 55 so 55.999999 works but 56 turns red). Code:
if (BUNO.rawValue>=164865){
if (Auto1Right.rawValue>=45 && Auto1Right.rawValue<=75)
{
var eleven = 11.00;
var auto2min=Auto1Right.rawValue-eleven;
var five = 5.70;
var auto2max=Auto1Right.rawValue+five;
if (this.rawValue>=auto2min&&Man2Right.rawValue<=auto2max)
{
Man2Right.fillColor="0,255,0";
}
}
else
{
Man2Right.fillColor="255,0,0";
}
}