<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><base href="x-msg://577/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Rex,<div>The localProperty Boolean variable that you have declared inside of the while loop is local to the while loop, and not connected at all to the localProperty variable you declared before the while loop. This is a scoping issue of Java, not an Alice quirk.</div><div><br></div><div>See video at this link to which will show you how to use the assignment control tile of Alice to set the value of the original localProperty to false.&nbsp;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="https://dl.dropboxusercontent.com/u/2332970/VariableScopeProblem.mp4">https://dl.dropboxusercontent.com/u/2332970/VariableScopeProblem.mp4</a></div><div><br></div><div>Let me know if you have another questions…</div><div><br></div><div>Later,</div><div>Don Slater<br><div><div>On Oct 30, 2013, at 10:00 AM, Rex McKanry &lt;<a href="mailto:rmckanry@stchas.edu">rmckanry@stchas.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div tabindex="0" dir="ltr" aria-label="Message body" fpstyle="1" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin: 0px; "><div style="margin-top: 0px; margin-bottom: 0px; ">Hi,</div><p class="owaPara" style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">In Alice 3 I have created at variable at the top of the code screen. It is currently set to True and at some point in the code I would like to set it to False. It is a local variable and not a scene variable. I tried to make a copy of the variable and change it to False in a While loop but it does not end my loop. The code below is with a local variable but if I use a Scene variable and&nbsp;it seems to work and exit the while loop.</div><p class="owaPara" style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">What am I doing wrong?</div><p class="owaPara" style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">Thanks,</div><div style="margin-top: 0px; margin-bottom: 0px; ">Rex McKanry</div><div style="margin-top: 0px; margin-bottom: 0px; ">St Charles Community College</div><p class="owaPara" style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><p class="owaPara" style="margin-top: 0px; margin-bottom: 0px; "></p><span>&lt;AliceVariable.PNG&gt;</span><p class="owaPara" style="margin-top: 0px; margin-bottom: 0px; "></p><div style="margin-top: 0px; margin-bottom: 0px; "><br>&nbsp;</div></div>_______________________________________________<br>alice-teachers mailing list<br><a href="mailto:alice-teachers@lists.andrew.cmu.edu">alice-teachers@lists.andrew.cmu.edu</a><br><a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a></div></blockquote></div><br></div></body></html>