prefix
Written as prefix(argnum flags):options in a transform expression.
| Minimum arguments | 1 |
| Maximum arguments | 2 |
| Default arguments | 1 |
| Argument modes | SINGLE_PRIMITIVE, MULTIPLE_PRIMITIVES |
Documentation
Section titled “Documentation”Add a prefix to text with flexible argument handling.
Works in 2 modes depending on number of arguments:
- single arg mode: uses options string as the prefix
- 2 arg mode: combines the second argument (defaults to empty string, if null) and options string as the prefix
| Flag | Letter |
|---|---|
| spread_input | s |
| noncaptive_input | I |
| arg_num_flexible | f |
Examples
Section titled “Examples”Basic prefix
Section titled “Basic prefix”Input args: ["file.txt"]Transforms: "prefix:/path/to/"Output: "/path/to/file.txt"Combined prefix
Section titled “Combined prefix”Input args: ["value","param="]Transforms: "prefix::"Output: "param=:value"With None handling
Section titled “With None handling”Input args: ["text",null]Transforms: "prefix:pre-"Output: "pre-text"