Alice Community  

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

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Retrieve data depending on user input
Junior Member
Status: Offline
Posts: 4
Join Date: Dec 2011
Default Retrieve data depending on user input - 12-28-2011, 01:22 PM

For a project, I need to retrieve a name from a numbered list that corresponds to the number input by the user.

How do I associate a numeric world variable ("Rank") with the name of the item in that spot on the list? Do I do this with a list or array? How do I connect a number to a pre-determined string?

Any help would be appreciated, I have been reading the books but not finding anything that seems to address this.
Reply With Quote

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 ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.