you need to add () 's and a lot of them , further Arduino knows 2 types of AND and OR's the logical and the bitwise.
IF (VAL > 100 AND VAL < 140) THEN ...
becomes
if ((val > 100) && (val < 140))
{
....
}
See for more information http://www.arduino.cc/en/Reference/Boolean