New account registration is temporarily disabled.

HOW TO SET MAX AND MIN VARIABLE

Posts

Pages: 1
hello everyone i have one question how do you put max and min in variable so i want to make variable that only can have max 5 and min 1.So it can't be more than 5 and can't lower than 1
thank you very much i will explain later if my explanation is bad
Trihan
"It's more like a big ball of wibbly wobbly...timey wimey...stuff."
3359
Have two conditional branches after you add to/subtract from the variable that checks whether its value is greater than 5/less than 1 and if so sets them to the minimum/maximum value instead.
author=Trihan
Have two conditional branches after you add to/subtract from the variable that checks whether its value is greater than 5/less than 1 and if so sets them to the minimum/maximum value instead.

thank you ^^
Pages: 1