by dev | Apr 21, 2018 | Book
Using Variables Variables aren’t required in AMPscript. It’s possible to achieve the same result by just using functions, conditional statements and operators. However, without variables: functions and constants would need to be defined multiple times,...
by dev | Apr 21, 2018 | Book
Script Blocks Script blocks can also be included within code blocks to whether the containing code should be interpreted. Two attributes can be included in a script block: name and type. Example 1 In the example below, the HTTPGet function will only be executed if the...
by dev | Apr 21, 2018 | Book
AddObjectArrayItem This function adds an object to a Marketing Cloud API Object array. Arguments AddObjectArrayItem(1,2,3) Ordinal Type Required Description 1 API Object True The API Object that contains the array 2 String True The array property associated with the...
by dev | Apr 21, 2018 | Book
Comments Comments can be included in AMPscript blocks. They are contained within an opening /* and closing */ syntax pair and provide the ability to include a readable explanation or annotation for users. Any comments are ignored by Marketing Cloud and will not be...
by dev | Apr 21, 2018 | Book
Overview Most digital marketing platforms offer personalization strings, which may be referred to as merge fields, merge tags or substitution strings, depending on the platform. This support allows a string-based identifier, enclosed in a delimiter, to be included on...
by dev | Apr 21, 2018 | Book
CreateObject This function instantiates the specified Marketing Cloud API Object. NOTE: Instantiated objects do not persist after the first subsequent Invoke function call (for example, InvokeRetrieve(), InvokeUpdate(), etc.). Argument CreateObject(1) Ordinal Type...