SetValue

Overview

Returns the value from the specified AMPscript variable in the current script context

Syntax

SetValue(1, 2)

Function Properties

Ordinal Type Description
1 string Required AMPscript variable containing value
2 string Required Value passed to AMPscript variable

Example

<script runat=server>
     Platform.Variable.SetValue("@exampleVariable","exampleValue");
</script>
Last Updated: Jun 8, 2021