Edit a value
Use Edit a value to change a value before the process uses it. Choose a starting value, apply one or more operations to it, and store the result in a variable.
What the block does
The block starts with one value and applies the operations to it in the order they are listed. Each operation works on the result of the one before it. The result of the last operation goes into a variable tag.
The block works it out immediately. The process doesn't wait and moves straight on to the next step.
When to use it
Use Edit a value to:
- turn text from a form into a number and calculate with it, for example an amount including VAT
- take part of a text, such as the year from a date
- write a date in a different format, for example 31-12-26 as 2026-12-31
- clean up text, such as capital letters or characters that aren't letters or digits
- create a random code or number
- get the email address or name of an account, for example as the recipient of a task
- check a sender against the mail blacklist
To turn a fixed value into another fixed value, such as a code into a description, use a conversion table instead.
Settings
- Start script with: the tag you start from. This can be any available tag, such as a form value, the result of an earlier step or a fixed tag. This field is required.
- Add operation: opens the Choose an operation window, where the operations are grouped into Text operations, Number operations, Encoding & security and Advanced. You can add as many operations as you need.
- Store result in: the variable tag that receives the result. Choose an existing variable or create a new one on the spot. This field is required.
- Type of the result: text, number, yes/no, list or JSON. This tells the next steps what they receive. With Determine automatically, the field follows the operations you choose. If you pick a type yourself, your choice is kept.

Operations

Text operations
| Operation | What it does |
|---|---|
| Part of the text | Takes part of the text, from character x to character y. The first character is number 0, and the character at the end position is not included. From 0 to 4 on 2026-11-21 gives 2026. |
| To lowercase | Converts the text to lowercase. |
| To uppercase | Converts the text to uppercase. |
| Capitalise the first letter | Turns the first letter into a capital. |
| Pad on the left (leftpad) | Pads the text on the left to a fixed width. With length 5 and character 0, 42 becomes 00042. |
| Text length | Returns the number of characters in the text. |
| Sanitize to alphanumeric | Removes characters that aren't letters or digits. Spaces and capital letters are kept, unless you set those options to no. |
| Split text (split) | Splits the text at a separator. With an index, you get one part. Without an index, you get a list of all parts. |
| To JSON | Converts the value to JSON text. Use it to turn a number or a list into text first. |
Number operations
| Operation | What it does |
|---|---|
| Text to number | Converts text into a number. Use a full stop as the decimal separator. |
| Addition | Adds a fixed number or a tag to the current number. |
| Subtraction | Subtracts a fixed number or a tag from the current number. |
| Multiplication | Multiplies the current number by a fixed number or a tag. |
| Division | Divides the current number by a fixed number or a tag. Dividing by zero gives an error. |
| Rounding | Rounds the number to a number of decimal places. |
| Absolute value | Turns a negative number into a positive one. |
| Random number | Creates a random number between a lower and an upper limit, with the number of decimal places you set. Use 0 for a whole number. The starting value is not used. |
Encoding & security
| Operation | What it does |
|---|---|
| SHA-256 hash | Replaces the value with its SHA-256 hash. |
| MD5 hash | Replaces the value with its MD5 hash. |
| HTML escape | Converts special HTML characters, such as < and &. |
| Base64 encode | Converts the value to Base64. |
| Base64 decode | Converts a Base64 value back to text. |
| Random characters | Creates a secure, random string of characters of the length you set. The starting value is not used. |
Advanced
| Operation | What it does |
|---|---|
| JSONPath query | Takes part of a list or object. For example, $[0].name returns the name of the first element. |
| Recognise a text pattern (regex) | Searches the text for a pattern. You get the first match, or a list of all matches. Without a match, the result is empty, or an empty list if you asked for all matches. |
| Reformat date | Reads a date with an input pattern and writes it with an output pattern. With dd-MM-yy and yyyy-MM-dd, 31-12-26 becomes 2026-12-31. |
| Email address of account | Returns the email address of an account reference, for example as the recipient of a task. An unknown account gives an error. |
| Name of account | Returns the full name of an account reference. An unknown account gives an error. |
| Check the mail blacklist | Checks the sender, and optionally the subject, against the rules of the mail blacklist. The result is the reason of the matching rule, or empty if no rule matches. |
Example: an amount including VAT
A form provides the amount 100 as text, and you want the amount including 21% VAT.
- Start script with: the tag with the amount from the form.
- Text to number: the text becomes the number 100.
- Multiplication by
1.21. - Rounding to 2 decimal places. The result is 121.
- Store result in: a new variable, for example amount including VAT, with number as its type.
You can then use the variable in an email, a gateway or a later step. Always round the result of a calculation: multiplying with decimals can leave a tiny remainder after the decimal point.
Behaviour and error handling
Text operations only work on text. If the previous operation returns a number or a list, the panel warns you while you design the process. Convert the value to text first, for example with To JSON, or change the order.
If an operation fails while the process runs, the step stops with an error message. This happens, for example, when:
- a text operation doesn't receive text
- Text to number can't make a number from the value
- you divide by zero
- a tag in an operation doesn't give a valid number
- the account doesn't exist for Email address of account or Name of account
The process instance then stops at that step, and StatusQuo shows the error message for the step. Fix the cause and choose Retry task, or continue from another step.
An empty result is not an error. Recognise a text pattern without a match and Check the mail blacklist without a matching rule both return an empty value. Add a gateway after them that branches on is empty or is not empty.
Good practice
- Start with Text to number before you calculate with a value from a form.
- Use a full stop as the decimal separator. A comma isn't recognised: 12,50 becomes 12.
- Round as the last step of a calculation.
- Give the variable a name that says what it holds.
- Keep each block to one purpose. Two blocks in a row are easier to follow than one long chain of operations.
- If a value can be empty, handle that with a gateway instead of a made-up replacement value.
See also
- Conversion table: convert a fixed value
- Fixed tags: values that are always available
- Gateways: decide on the result
- Block types: every block at a glance