Forum Discussion

SusanJaques's avatar
SusanJaques
Community Member
3 years ago

Why can't i use the "add" function for a variable?

Hey, 

I'm trying to figure out how someone is creating a trigger that adds a number to a variable. When I try to do it however, I am not given the option "add". Instead, I'm only given the option "set." What the heck is going on? I've attached screenshots.

  • BobStryker's avatar
    BobStryker
    Community Member

    Hi Susan,

    Make sure the variable you want to add to is a number type. One indication you're only seeing "Set" may be because the variable you are trying to add to is a text type.

    Hope that's it!

    Bob

    • SusanJaques's avatar
      SusanJaques
      Community Member

      Hey Bob,

      I feel like a fool. I had thought for sure I'd checked and made sure it was a number, but you were absolutely right, it was set as a text. 

  • Quick note for others who might find this post. Even with a number variable, the default trigger adjustment is to Set the variable to a specific value. 

    However, if you click Set in the Trigger Wizard, you'll see the options for math operations (Add, Subtract, Multiply, Divide).