Draycos Goldaryn
Member
ok, i know when you're scripting a conditional statement "==" means "is equal to" and "!=" means "is not equal to". I'm assuming "<=" means "is less than or equal to" and ">=" means "is greater than or equal to" but is there a way to use it in such a way as to say:
if 32 <= variable.x <= 40 #cuts down on amount of redundant typing
rather than
if variable.x >= 32 and variable.x <= 40 #had to type "variable.x" twice, seems redundant
or is there another (easier) way to check if variable.x is between 31 and 41
my appologies if this is in the help file already, It's just I'm at work when this popped in my head and i really would like it answered since i do alot of my game planning while at work with no rmxp in sight.
if 32 <= variable.x <= 40 #cuts down on amount of redundant typing
rather than
if variable.x >= 32 and variable.x <= 40 #had to type "variable.x" twice, seems redundant
or is there another (easier) way to check if variable.x is between 31 and 41
my appologies if this is in the help file already, It's just I'm at work when this popped in my head and i really would like it answered since i do alot of my game planning while at work with no rmxp in sight.