In a project I'm making, I have two lists; one has numbers, and one has words. I need the number in a certain place in the list (say fifth) to trigger a word (the fifth word) on the word list, and than say " are you a **that word**
Any suggestions on how to accomplish this?
Offline
I don't think you understand what I'm trying to convey here; it's probably just bad descriptive skills on my part though.
I have two lists. One is called 'string_index', one is called 'dictionary'.
throughout the game, (which is sorta' a takeoff of 20Q) the computer is recording the answers you give to a series of questions. At the end, it takes that string of numbers (which would look like this 112121222121121210) and checks to see if that "string" is in the String_Index. When the computer can't guess the word you chose, it asks you to type in your word, and than enters that word into the Dictionary. At the same time it adds the string of numbers into the String_Index. So the word and the number are in two different lists, but they have the same placement value. What I need is a way to say, "if this string is in the string_index, remember the placement, and say "are you a (word-number-(same as string placement number)-in-dictionary"" whew!
Hopefully this makes sense to someone.
Offline
Is this what you're looking for? :S
Offline
Giddy215 wrote:
Yes!! That works perfectly! Thanks to all!
You're welcome!
Offline