Processing Rules - Setting Counter eVars from Context Variables

Avatar

Avatar

mogrogan

Avatar

mogrogan

mogrogan

24-08-2017

Hi there,


I want to increment a counter eVar by one each time i receive a context variable.

It seems logical i should be able to overwrite the value of the eVar with "+1" when I receive the context variable.

Would this increment a counter eVar or simply write the value as literally "+1"

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

ericmatisoff

Employee

Avatar

ericmatisoff

Employee

ericmatisoff
Employee

25-08-2017

I'm *pretty* sure this works as expected (a "+1" in the processing rule value for a counter eVar results in the number being incremented). Do you have a dev report suite to confirm it? If not, I do and can let you know for certain.

Answers (3)

Answers (3)

Avatar

Avatar

ericmatisoff

Employee

Avatar

ericmatisoff

Employee

ericmatisoff
Employee

28-08-2017

Confirmed - I was able to set +1 and +2 in a processing rule for a Counter eVar and it worked as expected.

Avatar

Avatar

Gigazelle

Employee

Total Posts

1.9K

Likes

459

Correct Answer

734

Avatar

Gigazelle

Employee

Total Posts

1.9K

Likes

459

Correct Answer

734
Gigazelle
Employee

28-08-2017

Based on my knowledge of how contextdata variables and evars work, this shouldn't be a problem. If it is, let us know and we can figure out an alternative.

Avatar

Avatar

mogrogan

Avatar

mogrogan

mogrogan

25-08-2017

Hi -

Sounds positive - I don't have access so if you could confirm that would be amazing.


Thanks!