Help Centre › Functions & Formulas
Execute a Python script file with parameters.
Add it to a process
In the process designer, open the Add step tab. Find Run code snippet under Process, or type its name in the search box, and drag it onto the canvas.
Fields
| Field | Required | What it does |
|---|---|---|
| File path | Yes | Enter the file path, or use a variable such as {folders::desktop::path}\file.txt. |
| Function | Yes | The function name to call within the script file |
| Variable | No | Variable to store the return value |
What it gives back
{None}
See all Process steps.
Syntax
CODE(text)
The CODE function syntax has the following arguments:
- Text Required. The text string from which you want to extract the numeric code of the first character.
Example
| Formula | Description | Result |
| =CODE("A") | Returns the numeric code for the character "A". | 65 |
| =CODE("!") | Returns the numeric code for the character "!". | 33 |
| =CODE({variable}) | Assuming {variable} contains "Hello", this returns the numeric code for "H". | 72 |