appmixer.utils.controls.CodeBlock
1.0.0
Public
| Field | Type | Description |
|---|---|---|
| Code | textarea | Write JavaScript code to transform data. Access input data via $data object (e.g., $data.value). - No top-level return statements - the last expression is automatically returned. - To use return, wrap in IIFE: (function() { return $data.value * 2; })()- To return JSON object, use JSON.stringify: JSON.stringify({- Define your variables in the 'Variables' form below. Variables will be accessible in the code as $data.<variable name>. |
| Variables | expression | Provide the variables. |
| Field | Type | Description |
|---|---|---|
| Result | - |