Jump to content




getting more than one number


  • You cannot reply to this topic
2 replies to this topic

#1 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 19 February 2013 - 04:40 AM

how do you check more than one number with an if statement like
if X == 1 through 12 then

#2 sjele

  • Members
  • 334 posts
  • LocationSomewhere on the planet called earth

Posted 19 February 2013 - 04:42 AM

Like this?

if x >= 1 and x <= 12 then
  print(x.." is between 1 and 12")
end


#3 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 19 February 2013 - 06:49 AM

thanks





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users