Forum Discussion
JeffGraunke-31b
4 years agoCommunity Member
Trying to add/subtract from variable based on object state - Need some help
I am challenged trying to get simple math to work with triggers. The goal is to add 1 when the user clicks on an object in the Normal state and subtract when in the Selected state.
I have one trig...
WaltHamilton
4 years agoSuper Hero
Change "if state of ... is equal Normal" to "if state of ... is not equal Selected.
Selected (like most of us) thinks it is normal, so in a trigger like this, reports that it is normal. Be aware the the switch between Normal and Selected takes place before any of the "When user clicks" triggers happen.
Edit - All the built-in states report that they are Normal.
- JeffGraunke-31b4 years agoCommunity Member
Thank you!! That worked!!
I had no idea the states work that way.
Related Content
- 12 months ago
- 12 months ago
- 12 months ago
- 12 months ago