6 Replies Latest reply on Jan 17, 2018 2:47 PM by ngarner RSS
    ngarner Explorer

    Return in the middle of a service


    I'm writing a service where I need to exit/return execution based on a programmatic decision.  For example:


    if (var < 10)




    continue execution


    Thingworx throws an error when saving a service if you put "return" in the code.  What's the proper way to exit a service in the middle of execution?


    Thank you,