Alice Community  

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
How do you compare two strings in Alice?
Old
Vorrox
Guest
 
Status:
Posts: n/a
Default How do you compare two strings in Alice? - 03-09-2011, 06:17 AM

I am having a problem, where I want to use a while loop to compare two strings, and move on to an if statement once the condition is met. The condition being that the string must equal either "Trick" or "Treat". Once it equals either of those, I want it to run an if statement to check which one was entered, and then respond accordingly. I apologize if this doesn't make much sense, I am very tired.
   
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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.