![]() |
Getting Loopy
I worked with loop and while today to get a character to jump in the air and spin a user-specified number of times. As a bonus I also had to figure how to accept possible variations in a "yes" response.
Since I couldn't figure out a possible existing function or combination of functions in Alice that could accomplish changing the case of an string entry, I just used some boolean logic checks to get it done. |
getting loopy
So what I did was create an if else statement inside my loop that said if true == answer "yes" OR == "Yes" OR == "YES"...That way it would except any of those values instead of changing the casing in the variable. Hope that helps
|
All times are GMT -5. The time now is 10:56 AM. |
Copyright ©2021, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.