zoomkat:
Can a logical AND be used to put the values in brackets for use with an if statement somewhat like below?if (distance >10 && distance =<50) strg = "within sight";
if (distance >50 && distance =<100) strg = "slow down";
if (distance >100 && distance =<200) strg = "almost there";
The expression is "<= 50" not "=< 50".