Why is $.flow.exit("Exit workflow") not working properly in my custom NodeJS step?

that code may not actually be working as expected and I would recommend adding return on all of the other instances of $.flow.exit . Right now it looks like we may always call the last $.flow.exit because of the default behavior of Node.js.

does that help?

Hi Dylan, I truly appreciate your help here.
There is more code after the $.flow.exit(), but I just realized that the code after is executed ! I did not have any console.log code after so I thought the workflow was executing at these $.flow.exit()

Thank you very much for your time and help me to understand better the platform, for which we are increasing our usage more and more