<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>nested loops not working</title>
		<link>http://tibasicdev.wikidot.com/forum/t-14096698/nested-loops-not-working</link>
		<description>Posts in the discussion thread &quot;nested loops not working&quot; - When I run the code below, it works fine. (TI nspire CAS II calculator) However at the end of the program I give two options, &quot;Enter&quot; to repeat the program, &quot;Esc&quot; to quit. &quot;Esc&quot; works fine. However if I pick &quot;Enter&quot;, the RequestStr box pops up again to receive the new input as intended. When I enter the input, the program displays &quot;You entered nothing&quot; and goes back to the RequestStr box again. I have to press &quot;Cancel&quot; on the RequestStr box to get out of the loop. &quot;You entered nothing&quot; is part of the error code I am using to intercept the case where the user may click OK without entering anything into the box. So basically the program works fine the first time I run it, it is when I choose to rerun it again is when the issue arises. Any help will be greatly appreciated. T Gahan</description>
				<copyright></copyright>
		<lastBuildDate>Tue, 21 Apr 2026 07:54:05 +0000</lastBuildDate>
		
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-14096698#post-4993101</guid>
				<title>Re: nested loops not working</title>
				<link>http://tibasicdev.wikidot.com/forum/t-14096698/nested-loops-not-working#post-4993101</link>
				<description></description>
				<pubDate>Mon, 31 May 2021 11:34:44 +0000</pubDate>
				<wikidot:authorName>Xeda Elnara</wikidot:authorName>				<wikidot:authorUserId>595803</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It has been a while, but maybe it is this that is causing the issue:</p> <div class="code"> <pre><code>:If d=0 :Exit</code></pre></div> <br /> I think you are trying to use that to exit the <tt>While</tt> loop, but that code is unnecessary as the code will exit the while loop anyways (since d=0 and you are looping only when d=1).
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-14096698#post-4978203</guid>
				<title>nested loops not working</title>
				<link>http://tibasicdev.wikidot.com/forum/t-14096698/nested-loops-not-working#post-4978203</link>
				<description></description>
				<pubDate>Thu, 13 May 2021 15:33:39 +0000</pubDate>
				<wikidot:authorName>tgahan</wikidot:authorName>				<wikidot:authorUserId>1884111</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <div class="code"> <pre><code>Define LibPub funvarsolv()= Prgm :Local y1,res,i,ab,d,c : :Loop :0→c :1→d :While d =1 :Try :RequestStr &quot;enter function&quot;,y1,0,ab :0→d : :Else :© user left input box empty :Text &quot;you entered nothing&quot;,0 :ClrErr : :EndTry :If d=0 :Exit :EndWhile :© user pressed cancel : If ab=0 Then : Disp &quot;Press ENTER to end&quot; : subrtine\delay() : DelVar y1,i,k,ab : Return : :EndIf : : : : expr(&quot;Define y1(x) =&quot;&amp;y1) : res:=exp▶list(solve(y1(x)=0,x),x) : :Disp &quot;Solution set: &quot;&amp;var&amp;&quot; =&quot;,res : :subrtine\dlay() :If k=&quot;esc&quot; Then :1→c :ElseIf k=&quot;enter&quot; Then :0→c :EndIf :If c=1 :Exit :EndLoop :EndPrgm</code></pre></div> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>