Hi,
Have a look at the select case command
[code:1:66fec5150b]
select Vase ADCValue
case 0 to 99
print "Button1"
case 100 to 199
print "Button2"
case 200 to 299
print "Button3"
case 300 to 399
print "Button4"
end select
[/code:1:66fec5150b]
Regards
Ian Dobson
↧