![]() |
String matching
Does anybody know if it is possible to do string matching in Alice 2.2?
Were making the user enter a string, followed by an if statement where we are trying to match the string. For example, if the user enters 'dog', the program will continue with one method; for all other entries, the program continues with a different method. Hope someone can help :) |
Matching a string
Yes,
Make an If statement, and drag your string variable into it, Alice will prompt you to choose either == or != and then ask for a string to match. Mark |
That works. Thanks!
|
All times are GMT -5. The time now is 04:08 PM. |
Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.