Thanks roboticus...the script is looking for the range of numbers dynamically in real time: 400-500 = Lights Off and 200-300 = Lights On. These numbers are generated via the photo resistor and is read from the serial port. The script is turned on and runs in the backround and once one of those numbers in the specified range has been detected the lights will either turn on or turn off. The while loop freezes my script as its looking for the range of numbers. The loops needs to continually be checking for that range of numbers as it will eventually trigger other things to happen.
In reply to Re^2: Match Numeric Range
by PilotinControl
in thread Match Numeric Range
by PilotinControl
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |