between two number

Programming related discussions related to game research
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

between two number

Post by Shokoniraya »

i have a question, is there any way to make a if-endif and work on some values between two number
explain: if SIZE was a number between 0 to CHECK, then do if-endif, but how can i do this with if-endif? which command?

get CHECK
get SIZE asize
if SIZE == between 0 and CHECK
math SIZE + 20
endif
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: between two number

Post by aluigi »

Code: Select all

if SIZE >= 0 && SIZE < CHECK