if WriteGVTrip == true then
if DistanceTrip <= 1000 then
model.setGlobalVariable(GVTrip, 0, math.floor(DistanceTrip) )
elseif (DistanceTrip/10) <= 1000 then
model.setGlobalVariable(GVTrip, 0, math.floor(DistanceTrip/10) )
elseif (DistanceTrip/100) <= 1000 then
model.setGlobalVariable(GVTrip, 0, math.floor(DistanceTrip/100) )
end
if WriteGVTrip == true then
if (DistanceTrip/10) <= 1000 then
model.setGlobalVariable(GVTrip, 0, math.floor(DistanceTrip/10) )
elseif (DistanceTrip/100) <= 1000 then
model.setGlobalVariable(GVTrip, 0, math.floor(DistanceTrip/100) )
end