Stop at Zero

chrisalchrisal Member Posts: 74
edited November -1 in Working with GS (Mac)
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

Comments

  • SparkyidrSparkyidr Member Posts: 2,033
    just wrap your commands to remove 1 from the attribute inside a rulke that says

    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.
Sign In or Register to comment.