Build
Transform Modules
1 min readOpen in Neblex
Transform Modules are reusable, versioned Rhai functions shared by many Code steps, such as money rounding or a company-specific normalization.
- New module: choose a Module key (lowercase letters, digits,
-,_; it cannot be renamed later) and a description. Build functions visually in the Function builder (name, parameters, behavior) or write source such asfn cents(v) { (v * 100.0).to_int() }. The code is checked when you save. - Use it: list the module key under Imported modules on a Code step and call its functions.
- History: every save is a version; compare and restore an earlier one.
- Delete: moves to Trash after showing which flows use it.

- Reusable Rhai functions for Code steps.