{"id":4647,"date":"2021-11-11T08:19:48","date_gmt":"2021-11-11T08:19:48","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=4647"},"modified":"2021-11-11T08:20:11","modified_gmt":"2021-11-11T08:20:11","slug":"goto-was-unexpected-at-this-time","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/goto-was-unexpected-at-this-time\/30333.html","title":{"rendered":"Goto Was Unexpected At This Time."},"content":{"rendered":"<p>Whenever I tell the program to go to correct1 it says goto was unexpected at this time.<\/p>\n<p>@echo off<br \/>\ncls<br \/>\nset \/a checkpoint=0<\/p>\n<p>:start<br \/>\nset \/a checkpoint=start<br \/>\ncls<br \/>\necho You are in a dark room.<br \/>\necho You see a &#8220;light switch&#8221;.<br \/>\nset \/p choice=Enter:<br \/>\nif %choice%==turn on light switch goto correct1<br \/>\nif %choice%==manual goto gamemanual<br \/>\n:gamemanual<br \/>\ncls<br \/>\necho These Are The Possible Commands:<br \/>\necho.<br \/>\necho -turn on &#8220;object name&#8221;<br \/>\necho -go to &#8220;place&#8221;<br \/>\necho -more to come&#8230;<br \/>\npause &gt;nul<br \/>\ngoto %checkpoint%<br \/>\n:correct1<br \/>\ncls<br \/>\necho *This is how the ame will be&#8230; You will be looking for clues through different<br \/>\necho scenarios.<br \/>\npause &gt;nul<br \/>\nexit<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":0},"question-category":[55],"question_tags":[],"class_list":["post-4647","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/4647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=4647"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=4647"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=4647"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=4647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}