Skip to main content

Introduction to Code Element

Create Process Variables and execute C#

Ossi Galkin avatar
Written by Ossi Galkin
Updated over a year ago

Code Element

The Code Element allows you to create Process Variables and execute C# code directly in a Process. The Code Element has two modes - one that declares a variable and assigns a value, and one that executes an expression.

If you chose to declare a variable and enter a variable name, the variable can be accessed with a #var. reference.

A Code variable declared in the root of a Process is accessible from child scopes and modification to it in the child scopes will be visible from the root. A Code variable declared in a child scope will not be accessible in the root.

If a Code Element declares a variable the return value of the Element will be the value of the variable.

A Code Element that does not declare a variable will only return a String value indicating that it has been executed.


​

Did this answer your question?