If statement capturing values outside of scope

I am a beginner so excuse any obviousness about this question:

I am using the following code to capture values between 100-999, but it is capturing any value over 100 and over 999. It does not capture values under 100 (which is good). Is there something wrong in this statement or do you think the problem may lie elsewhere in the program?

...} else if (num => 100 && num < 1000){ ...

I have just solved it!! should be >= not => :slight_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.