on 2025 Mar 03 8:39 AM
I have several javascript blocks in my iFlow and want to share some functions between them, as they are used on all of them. To achieve that, I created a javascript file like below and uploaded it to the local references of the iFLow as shared_function_file.js.
export function shared_function(variable) {
return "cool";
}In the script, where I want to use this function, I tried to import it with
import { shared_function} from "shared_function_file.js";which results in the error:
javax.script.ScriptException: identifier is a reserved word: importIs it somehow possible to share functions between script blocks and if yes, how it is working?
Request clarification before answering.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.