I've just started playing with Arduino and can't find an answer to what I suspect is a very simple programming problem (my apologies, I am a real newbie).
My question, is there a way to create an IF statement that tests a range?
i.e: If (sensorValue>0 and less than 50), do this...
My problem is I don't know what operator to use to express that range 0 to 50 (if there is one).
I suspect this is a real newbie question - but I couldn't find an answer in the reference material.