Jump to content

Value in between a = 1 and a = 100


Xilante

Recommended Posts

I have a question about the (What I believe is) Comparison operators.

 

From what I saw you can define that something is:

== equal, >= more or equal to, <= less or equal to, etc.

 

But what If I need the value in between?

Let's say I need X to be 2,3,4,5,6,7 ... until 99, I could write:

 

If X >= 1 --BUT-- X <= 100 [Not actual script of course]

 

But Instead of writing that it needs to be more than 1 but less than 100, is there an operator which does that in a simpler way? Something like:

 

X %= 100 - So it would use all the values from 1 to 100 but not less or more than 100

(the % is a random symbol just to make an example)

 

I looked on the CKwiki and didn't find anything but I might have missed or didn't understand it so if someone can confirm either it would be really helpful =) Thanks in advance.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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