Hi Jeguna. Your code and your textual description are condradicting. To execute the code you should use Altenbach's code and to execute the description you should use Paulo's.
An improvement to Paulo's code would be to use the In range VI from the comparison pallete - and use the In range output as your flag - as long as i is between the two numbers it will be T. This would rid you of the big case structure.
___________________
Try to take over the world!