How to use an output from a function as a criteria on a decision path on Kiosk

How to use an output from a function as a criteria on a decision path on Kiosk

Dear community,

Is it possible to use the result of a function executed in a Kiosk flow as a criteria in a decision step in Kiosk studio?

Let's supose I have a function that makes an API request. Is it possible to define the next step of the Kiosk flow based on the request response?