alice-teacher Change variable value on the fly

Rex McKanry rmckanry at stchas.edu
Wed Oct 30 10:00:13 EDT 2013


Hi,

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 it seems to work and exit the while loop.

What am I doing wrong?

Thanks,
Rex McKanry
St Charles Community College

[cid:2770e54b-b2b7-49ca-be70-1de076491472]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20131030/aa1afe20/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AliceVariable.PNG
Type: image/png
Size: 14531 bytes
Desc: AliceVariable.PNG
Url : http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20131030/aa1afe20/attachment.png 


More information about the alice-teachers mailing list