{"id":6130,"date":"2021-11-18T07:13:56","date_gmt":"2021-11-18T07:13:56","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=6130"},"modified":"2021-11-18T07:15:39","modified_gmt":"2021-11-18T07:15:39","slug":"batch-spaces-in-input","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/batch-spaces-in-input\/28387.html","title":{"rendered":"Batch Spaces In Input"},"content":{"rendered":"<p>Batch Spaces in Input??<br \/>\nHelp! does anyone know how to make it possible to add spaces in input?<br \/>\nfor example<\/p>\n<p>echo oh no a troll appeared!<br \/>\nset \/p input=<br \/>\nif \/i %input%==hit troll with axe goto GAMEOVER<\/p>\n<p>if i type &#8220;hit troll with axe&#8221; it doesnt work!, how do i make it posible to add spaces?<br \/>\nalso the &#8220;If NOT defined&#8221; command doesnt work for me what am i doing wrong?<br \/>\ni typed in<\/p>\n<p>:cave<br \/>\necho Oh no a Troll!!<br \/>\nset \/p input=<br \/>\nif \/i %input%==hit troll with axe goto GAMEMOVER<br \/>\nif not defined input (<br \/>\necho invalid<br \/>\npause<br \/>\ngoto cave<br \/>\n)<br \/>\nbut it wont work!, it just skips to the next part, help please!<br \/>\ni hope i explained clearly, thanks for any feedback<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":3},"question-category":[55],"question_tags":[],"class_list":["post-6130","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\/6130","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=6130"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=6130"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=6130"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=6130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}