{"id":445,"date":"2013-03-05T23:49:19","date_gmt":"2013-03-05T18:19:19","guid":{"rendered":"https:\/\/www.psoftsearch.com\/interview-questions\/?p=445"},"modified":"2013-03-05T23:49:19","modified_gmt":"2013-03-05T18:19:19","slug":"difference-between-exit1-and-exit0","status":"publish","type":"post","link":"https:\/\/www.psoftsearch.com\/interview-questions\/difference-between-exit1-and-exit0\/","title":{"rendered":"Difference between Exit(1) and Exit(0)?"},"content":{"rendered":"<p>In an App Engine PeopleCode, it&#8217;s not uncommon to see code that works on the following logic.<br \/>\nYou have a condition and if it&#8217;s TRUE, you want Exit(1) to execute.<br \/>\nIf the condition is FALSE, you would like Exit(0) to execute.<br \/>\nDepending on the way in which you have designed the App Engine, this can completely change its flow.<\/p>\n<p>Can you explain what is the difference between Exit(1) and Exit(0)?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In an App Engine PeopleCode, it&#8217;s not uncommon to see code that works on the following logic. You have a condition and if it&#8217;s TRUE, you want Exit(1) to execute. If the condition is FALSE, you would like Exit(0) to execute. Depending on the way in which you have designed the App Engine, this can [&hellip;]<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[30],"tags":[],"_links":{"self":[{"href":"https:\/\/www.psoftsearch.com\/interview-questions\/wp-json\/wp\/v2\/posts\/445"}],"collection":[{"href":"https:\/\/www.psoftsearch.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.psoftsearch.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.psoftsearch.com\/interview-questions\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.psoftsearch.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=445"}],"version-history":[{"count":3,"href":"https:\/\/www.psoftsearch.com\/interview-questions\/wp-json\/wp\/v2\/posts\/445\/revisions"}],"predecessor-version":[{"id":448,"href":"https:\/\/www.psoftsearch.com\/interview-questions\/wp-json\/wp\/v2\/posts\/445\/revisions\/448"}],"wp:attachment":[{"href":"https:\/\/www.psoftsearch.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.psoftsearch.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.psoftsearch.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}