Stop at Zero
chrisal
Member Posts: 74
Hi all,
Just a quick question, i have a number that goes down by 1 every time a button is pressesd using the integer attribute, but after 0 it starts going in to the negative numbers. How can i stop this???
Many thanks
Chris
Just a quick question, i have a number that goes down by 1 every time a button is pressesd using the integer attribute, but after 0 it starts going in to the negative numbers. How can i stop this???
Many thanks
Chris
Comments
when that attribute is greater than or equal to 0
--do the taking away command
that will mean the rule only happens when that attribute is 0 or larger.