15.09.2021, 18:33
(This post was last modified: 16.09.2021, 06:47 by Erwin van der Zwart.)
Code:
textobject ='1/1/1'
speed = event.getvalue()
if speed == 0 then
grp.checkwrite(textobject, 'Auto')
elseif speed > 0 and speed =< 33 then
grp.checkwrite(textobject, 'Low')
elseif speed > 33 and speed <= 67 then
grp.checkwrite(textobject, 'Medium')
elseif speed > 67 then
grp.checkwrite(textobject, 'High')
end