Scriplets
Descope flows offer various steps, including screen building, actions, adding connectors, and conditions. Those steps may offer a certain level of customization, such as creating an input field or adding a custom error-handling step. By definition, those steps have a pre-defined output that Descope exposes to the flow context.
On certain occasions, a more flexible, developer-oriented approach is needed to perform mathematical, algorithmic, or just more convenient actions. Descope offers a way to do so with an action called "Scriptlet." This article will cover how to use the action with actual use cases.