12.06.2012, 17:25
&& should work.
Basically saying if the value is greater than or equal to 20 AND less than or equal to 40 execute code. else return false
pawn Код:
if (value >= 20 && value <= 40) { printf("works, %d", value); } else { printf("failed, %d", value); }