SetValue

Overview 

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

Syntax 

SetValue(1, 2)

Function Properties 

OrdinalTypeDescription
1stringRequiredAMPscript variable containing value
2stringRequiredValue passed to AMPscript variable

Example 

1<script runat=server>
2     Platform.Variable.SetValue("@exampleVariable","exampleValue");
3</script>