Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Set values of a variable?
Old
Xeriandros
Guest
 
Status:
Posts: n/a
Default Set values of a variable? - 11-21-2005, 06:20 PM

I'm trying to Loop a bit where the program asks the user for a number and that number gets stored to a variable so the object can perform certain actions based on that number.
What I need to know is how to set the value from "ask user for a number" to a variable.
Also, where do I put the "ask user..." thing in my loop? It only lets me put it in the _times spot. Is this correct?

Thanks vera much!
   
Reply With Quote
Old
kingsamses
Guest
 
Status:
Posts: n/a
Default 11-23-2005, 03:46 PM

You drag the variable into the code editing area and have it give the variable a dummy value. Then drag "ask user for a number" into the editor so it reads "[variable] set value to [ask user for a numer] more...v"
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.