AMPscript and Guide
AMPscript functions can be included as inline functions in Guide tags. To include an AMPscript function in a Guide tag, prefix the function with a =
character.
NOTE: When using Guide in CloudPages with AMPscript, it is necessary to escape OMM delimiters for the Guide tags to be interpreted. This is achieved by adding a
%%{={{ }}=}%%
string immediately before or after a closing AMPscript block.
Example 1
The following example retrieves an ‘Order Total’ value from a Sendable Data Extension and is formatted using the FormatCurrency function:
{{=FormatCurrency([Order Total],'en-GB',2)}}
Output
For a value of 23.99
, the function will render the following string:
£23.99
Example 2
Not a subscriber? Subscribe now.