DzMG-LV Posted April 20, 2016 Share Posted April 20, 2016 Hey, how to make if number is from -> to then Example: 3-5 then my code. Link to comment
Anubhav Posted April 20, 2016 Share Posted April 20, 2016 if (var =< 3 and var => 5) then Link to comment
Noki Posted April 22, 2016 Share Posted April 22, 2016 Anubhav, the equals sign always goes on the right. local var = 4 if (var <= 3 and var >= 5) then -- Code end Link to comment
Anubhav Posted April 22, 2016 Share Posted April 22, 2016 Anubhav, the equals sign always goes on the right. local var = 4 if (var <= 3 and var >= 5) then -- Code end My bad. I always fail to remember them for some reason, I should work on this! Link to comment
DzMG-LV Posted April 23, 2016 Author Share Posted April 23, 2016 Thanks, works perfect. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now