bunchukokoy wrote:Hi Guys!
May I ask for your help. Attached is a screen shot of my TI included in a chore.
My user runs this chore, not the TI. But it seems when my user inputs an incorrect input format, the chorequit function doesn't work. Instead it shows, Chore Completed Successfully.
Please help. Am I missing something in this?
Thanks.
Yup. ChoreQuit isn't by itself an error; it's just a flow control statement. Consequently even if it quits, it's "succesful". If you want it to report that there's been an error (and don't mind the logs showing one), you have to
generate an error.
The easiest way to do this is to put an ItemReject(); statement in your Prolog. (Yes, Itemreject has no real context outside of the Metadata and Data tabs, but it works anyway.)
Robin mentioned the point that I was going to make about the order of ProcessQuit and ChoreQuit but even if you fix that, you won't get an error for invalid input without creating the error.