• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic syntax question

 
Matt Hall
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to specify a value in an if statement as being between two numbers, am unsure how to reperesent this.

the if statement should be true if x is between 14 and 26, how should this be written.

e.g.

if (x //x should be between 14 and 26
 
vignesh hariharan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Matt Hall:

the if statement should be true if x is between 14 and 26, how should this be written.


 
Matt Hall
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nice one mate, cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic