I have some ‘set value’ actions in my Server Connect and am trying to increment one but it’s appending it instead. I have it set as a number and not text and also tried surrounding it with brackets but this is happening:
If var = 12, var + 1 should = 13 but it’s setting it to 121.
I’ve spent ages trying to get it to work but without any success. I’ve tried editing the SC in code view and formatting it there, too.
The type option for the variable is only to tell the data picker what type of data to expect. It doesn’t change the type of the variable.
The type of the variable is automatically set depending on the data entered.
The only other thing slightly different with mine is I’ve also set the Global Name to be the same as Name because I’m using this in a few places in the whole script (within a While loop and outside it). Could that be part of the issue?
Thanks Ben. It’s an INT(6) field so should be a number. I’ve added the toNumber() as you suggested and will see what happens the next time the IPN runs. I have a feeling you could be onto something there.