Follow

Data Macro Operators

A data macro operator is the action to perform against the selected field using the value you provide. Not all operators work with every field type. The following table defines each operator and the supported field types:

Operator Use

set to

Clears the current value of the field and then saves the new value.  Supported by all field types.

Dates must be set in the format "yyyy-MM-dd" or "yyyy-MM-dd HH:mm:ss".  You can also set the date to "Now" or "Today", which will save the current date/time as the Date.

increment by

Uses the current value of the field and adds the defined value, then saves the new value.  Supported by Number and Float fields. 

For example, to count the number of times a subscriber is sent a message from a specific list, create a custom field as a counter for the list and then create a macro to increment by 1:

Field Name: mylist_counter

Operator: increment by

Value: 1

decrement by

Uses the current value of the field and subtracts the defined value, then saves the new value.  Supported by Number and Float fields. 

For example, to count down the number of weeks until a special event, create a custom field and import the value of the number of weeks for each subscriber.  Then create a macro to count down the number and send a weekly message:

Field Name: myeven_counter

Operator: decrement by

Value: 1

 
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk