SetArgument

Set an [argument](/guide/variables) to be used in subsequent sub-actions

Signature

public void SetArgument(string variableName, object value)

Parameters

variableName
string required

Name of the argument you are assigning a value to

value
object required

Value assigned to the argument

Return Type

void

Example

using System;
public class CPHInline
{
    public bool Execute()
    {
        //Have a variable you want to set as argument
        string test = "This is a test";

        //Set the argument name and value of argument
        CPH.SetArgument("testArgument", test);         
        return true;
    }
}