A but statement
#5

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


Messages In This Thread
A but statement - by Faisal_khan - 12.06.2012, 17:02
Re: A but statement - by iggy1 - 12.06.2012, 17:14
Re: A but statement - by Faisal_khan - 12.06.2012, 17:22
Re: A but statement - by iggy1 - 12.06.2012, 17:24
Re: A but statement - by Revo - 12.06.2012, 17:25
Re: A but statement - by jessejanssen - 12.06.2012, 17:25
Re: A but statement - by iggy1 - 12.06.2012, 17:26
Re: A but statement - by Faisal_khan - 12.06.2012, 17:27
Re: A but statement - by Faisal_khan - 12.06.2012, 17:30
Re: A but statement - by Jochemd - 12.06.2012, 18:00

Forum Jump:


Users browsing this thread: 2 Guest(s)