Alice Community  

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

Reply
 
Thread Tools Display Modes
Using Strings in conditional Statements
Old
prins251
Junior Member
 
Status: Offline
Posts: 3
Join Date: Jun 2011
Location: Brampton, Ontario
Default Using Strings in conditional Statements - 03-13-2012, 08:41 AM

Alice 3
I want to create a "while" loop that uses the answer "Yes" or "no" - to the question "Do you wish to continue?" This requires storing the answer as a string. Yet there doesn't seem to be an option to use Strings in a conditional statement. I thought of using an if statement to convert the string response to a boolean, but there also doesn't seem to be an option to use a String in an if statement. Can anyone help me with that?
   
Reply With Quote
Reply


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.