Custom modules
Modules
// This code may be placed in a module. We will call it MyModule.
// A function which reverses a text value.
function reverse(input: text) {
let result = "";
for c in input {
set result = c & result;
}
return result;
}
// A value containing some placeholder text.
let placeholderText = "Lorem ipsum";// In a script step in an application
// which refers to MyModule by dragging it onto the canvas:
return MyModule.reverse(MyModule.placeholderText); // Returns "muspi meroL";Assertions
Private
FlowScript Playground
Last updated
Was this helpful?