Jump to content

Problem with Comparison


Nimrod667
 Share

Recommended Posts

Hi,

I need to compare a variable with two criterias. For example: I have to check if $i is between 5 and 10, so i have to check if $i is greater than 5 and smaller then 10.

If I use : case $i >= 5 and $i <= 10 its also true if $i is 20...I need something like case $i >=5 and <=10

How can I do this?

//Nimrod

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...