Xilante Posted June 30, 2012 Share Posted June 30, 2012 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 More sharing options...
betto212 Posted June 30, 2012 Share Posted June 30, 2012 if x >= 1 && x < 100 is the only way i think Link to comment Share on other sites More sharing options...
Xilante Posted June 30, 2012 Author Share Posted June 30, 2012 Thanks =).In CKWiki it only says && is "Logical AND" x) Didn't really understand what It meant =P *throws a kudo on you* Link to comment Share on other sites More sharing options...
Recommended Posts